Hadoop HADOOP_CLASSPATH issues

后端 未结 3 1815
南旧
南旧 2020-12-30 12:31

This question doesn\'t refer to distributing jars in the whole cluster for the workers to use them.

It refers to specifying a number of additional libraries on the

3条回答
  •  -上瘾入骨i
    2020-12-30 13:09

    Try to add your jar file in default CLASSPATH variable and also append HADOOP_CLASSPATH to it. Then execute your command.

    export CLASSPATH=/your/jar/file/myjar.jar:$CLASSPATH:$HADOOP_CLASSPATH /path/to/hadoop/script fs -text /path/in/HDFS/to/my/file

提交回复
热议问题