g++  -I/usr/local/jdk1.6.0_27/include/ -I/usr/local/jdk1.6.0_27/include/linux/ -I/usr/local/hadoop-1.0.2/src/c++/libhdfs/ -L/usr/local/hadoop-1.0.2/c++/Linux-amd64-64/lib -lhdfs -L/usr/local/jdk1.6.0_27/jre/lib/amd64/ -L/usr/local/jdk1.6.0_27/jre/lib/amd64/server/ -ljvm hdfs_test.c

 

需要将classpath加入。

export CLASSPATH=`find /usr/local/hadoop-1.0.2/ -name '*.jar' | grep -v 'test' | grep -v 'example' | perl -e '@jars=<STDIN>;chomp @jars; print join(":",@jars);'`

相关文章:

  • 2021-09-16
  • 2021-12-30
  • 2022-02-07
  • 2022-01-13
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2021-12-24
  • 2022-12-23
  • 2021-07-14
  • 2021-07-29
  • 2021-04-17
  • 2022-12-23
相关资源
相似解决方案