我正在學習sqoop從幾天,併成功安裝和配置hadoop。sqoop啓動但命令顯示sqoop命令未找到
[email protected]:/usr/local/sqoop/bin$ sqoop2-server start
Setting conf dir: /usr/local/sqoop/bin/conf
Sqoop home directory: /usr/local/sqoop
The Sqoop server is already started.
[email protected]:/usr/local/sqoop/bin$ sqoop
sqoop: command not found
sqoop服務器已經運行,當我嘗試發射sqoop命令,然後我收到錯誤消息。 command not found
。 sqoop家已經在路徑
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin
export HADOOP_INSTALL=$HADOOP_HOME
export SQOOP_HOME=/usr/local/sqoop
export SQOOP_CONF_DIR=$SQOOP_HOME/conf
export SQOOP_CLASSPATH=$SQOOP_HOME/server/lib
export PATH=$PATH:$SQOOP_HOME/bin:$SQOOP_CONF:$SQOOP_CLASSPATH
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/hadoop/sbin:/usr/local/hadoop/bin:/usr/local/sqoop/bin::/usr/local/sqoop/server/lib
請幫我解決這個問題。
在此先感謝。
沒有看到任何'JAVA_HOME'及其路徑可以請檢查並安裝了Java並且它的路徑設置正確 –
@SandeepSingh這可能是sqoop服務器啓動時沒有java路徑嗎? –