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
相關文章
- -bash: id: command not found -bash: tty: command not found
- Linux:-bash: tree: command not foundLinux
- Linux:-bash: unzip: command not foundLinux
- Mac -bash: mysql: command not foundMacMySql
- centos 7 -bash: mysql: command not foundCentOSMySql
- 【linux報錯】-bash: xhost: command not foundLinux
- bash: lspci: command not found解決方法
- -bash: XXX: command not found解決辦法
- python virtualenv報錯-bash: virtualenv: command not foundPython
- bash: ssh-copy-id: command not found...
- Mac之telnet報錯-bash: telnet: command not foundMac
- 解決bash: mysql: command not found的問題MySql
- ubuntu18 沒有 where 命令 -bash: where: command not foundUbuntu
- nodemon: command not found
- pip: command not found
- [Bash] Kill command
- [Bash] cp command
- [Bash] mv command
- [Bash] mkdir command
- [Bash] echo command
- [Bash] read command
- [Bash] awk command
- [Bash] watch command
- [Bash] curl command
- [Bash] grep command
- CentOS 已安裝virtualenv, 但還是報錯誤 bash: virtualenv: command not foundCentOS
- zsh:command not found: xxx
- mac mysql: command not foundMacMySql
- [Bash] ping netstat & traceroute Command
- sudo: apt-get: command not foundapt-get
- 【Linux】git note -v command not foundLinuxGit
- zsh: command not found: bee bee工具安裝
- Mac終端出現 brew command not found 解決Mac
- zabbix_get :command not found 解決辦法
- Linux提示crontab command not found的解決方法Linux
- “command-not-found has crashed” 解決辦法 (*unsolved)
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- 解決shell指令碼錯誤$’r’ command not found指令碼
- 解決 biolinux-conda command not found 2018-05-04Linux