我正在尝试安装 Hadoop
在 Fedora 29
在此过程中,我遇到了如下错误:
[hdadmin@single-node-pseudo-cluster ~]$ vi .bashrc
export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk-1.8.0.191.b12-11.fc29.x86_64/
export HADOOP_PREFIX= /usr/local/hadoop-3.2.0/
export PATH=$PATH:$JAVA_HOME/bin:$HADOOP_PREFIX/bin
[hdadmin@single-node-pseudo-cluster ~]$ source ~/.bashrc
bash: export: `/usr/local/hadoop-3.2.0/': not a valid identifier
-[the image shows the path of jdk folder][1]
-[the image shows the path of hadoop folder][2]
-Please help me to solve the error, thank you.
[1]: https://i.stack.imgur.com/6p949.png
[2]: https://i.stack.imgur.com/5iefV.png
1条答案
按热度按时间cczfrluj1#
您需要在hadoop\u前缀处删除path之前的空格,因为分配变量的正确语法是
NAME=value
. 所以,正确的选择:export HADOOP_PREFIX=/usr/local/hadoop-3.2.0/