跑GPS数据记录

打开终端,登入到root,进入/home/newday下

  • 在本地用pscp命令上传.zip的GPS数据
    pscp /home/newday/文档/trackgps_20150822.zip newday@172.18.49.17:/home/newday
  • 在hadoop8上
  • unzip -n trackgps_20150812.zip -d ./gps_0812 //解压缩到指定目录,若没有就新建
  • 然后,运行Merge.jar
hadoop jar Merge.jar gps_0811 hdfs://hadoop8:8020/Anewday/merge_0811.csv 
  • 然后运行0419.jar,目的:筛选属性值,GPS数据数据筛选为7列
hadoop jar 0419.jar hdfs://hadoop8:8020/Anewday/0811_merge.csv hdfs://hadoop8:8020/Anewday/0811_filter
  • 之后,运行
原文地址:https://www.cnblogs.com/amelie-tingting/p/6704934.html