在fedora 29上安装和设置hadoop

时间:2019-01-28 14:35:26

标签: hadoop fedora

我正在尝试在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 个答案:

答案 0 :(得分:0)

您需要在HADOOP_PREFIX的路径前删除空格,因为分配变量的正确语法是NAME=value。 因此,正确的选择是:export HADOOP_PREFIX=/usr/local/hadoop-3.2.0/