hadoop 2.x版本

编译:
javac -d . -classpath /usr/lib/hadoop/hadoop-common-2.2.0.2.0.6.0-102.jar TestGetPathMark.java

(classpath多个jar包用分号分隔 /opt/1.jar:/opt/2.jar)


在com的同级目录上建立manifest.mf

在里面写上Main-Class: com.test.path.mark.TestGetPathMark

d打包:
然后保存并执行jar -cvfm test.jar manifest.mf com/


然后执行hadoop jar test.jar args[]

相关文章:

  • 2021-07-12
  • 2022-12-23
  • 2021-11-14
  • 2021-06-17
  • 2021-12-04
  • 2021-11-20
  • 2021-08-20
  • 2021-12-18
猜你喜欢
  • 2021-12-14
  • 2021-08-07
  • 2021-05-15
  • 2022-12-23
  • 2021-12-19
  • 2021-04-10
  • 2022-12-23
相关资源
相似解决方案