bash: hadoop: command not found
輸入[root@localhost bin]# hadoop fs -ls / 報bash: hadoop: command not found 這個錯誤
需要將hadoop/bin路徑加入PATH,配置環境變數
[root@localhost bin]# vi ~/.bash_profile 開啟檔案,新增hadoop的bin路徑到path中
PATH=$PATH:$HOME/bin:/usr/local/hadoop-1.1.2/bin
儲存重啟啟動hadoop
或者[root@localhost bin]# source ~/.bash_profile ,使bash_profiel檔案生效
export JAVA_HOME=/usr/local/java/jdk1.8.0_05
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=./:$JAVA_HOME/lib:$JRE_HOME/lib:$JRE_HOME/lib/tools.jar
export HADOOP_HOME=/opt/hadoop
export HIVE_HOME=/opt/hive
export HBASE_HOME=/opt/hbase
export HADOOP_MAPRED_HOME=${HADOOP_HOME}
export HADOOP_COMMON_HOME=${HADOOP_HOME}
export HADOOP_HDFS_HOME=${HADOOP_HOME}
export YARN_HOME=${HADOOP_HOME}
export HADOOP_YARN_HOME=${HADOOP_HOME}
export HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export HDFS_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export YARN_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$HADOOP_HOME/bin:$HBASE_HOME/bin:$HIVE_HOME/bin
相關文章
- Mac -bash: mysql: command not foundMacMySql
- -bash :gradlew command not foundGradle
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- centos 7 -bash: mysql: command not foundCentOSMySql
- bash: lspci: command not found解決方法
- 【linux報錯】-bash: xhost: command not foundLinux
- bash: ssh-copy-id: command not found...
- 解決bash: mysql: command not found的問題MySql
- python virtualenv報錯-bash: virtualenv: command not foundPython
- -bash: XXX: command not found解決辦法
- Mac之telnet報錯-bash: telnet: command not foundMac
- RHEL7 解決xclock的 bash: xclock: command not found…
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- Linux Shell執行source或.命令報錯'bash: ..: command not found'Linux
- pip: command not found
- [Bash] cp command
- [Bash] mv command
- [Bash] mkdir command
- [Bash] echo command
- [Bash] awk command
- [Bash] Kill command
- [Bash] curl command
- [Bash] grep command
- [Bash] watch command
- CentOS 已安裝virtualenv, 但還是報錯誤 bash: virtualenv: command not foundCentOS
- mac mysql: command not foundMacMySql
- express: command not found.Express
- [Bash] read command
- 解決 command not found: expressExpress
- aix_ssh scp command not foundAI
- sudo: apt-get: command not foundapt-get
- sqlplus: command not found解決SQL
- zsh: command not found: bee bee工具安裝
- "mkimage" command not found - U-Boot images will not be builtbootUI
- [Bash] ping netstat & traceroute Command
- Mac終端出現 brew command not found 解決Mac
- zabbix_get :command not found 解決辦法