简体   繁体   English

Apache Hadoop 2.6:伪分发模式设置

[英]Apache Hadoop 2.6: Pseudo Distribution Mode Setup

I am setting up Apche Hadoop 2.6 for the Psuedo Distributed Operation by following the instructions provided in the link: 我将按照链接中提供的说明为Psuedo分布式操作设置Apche Hadoop 2.6:

http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html

I am facing an issue after I execute the command: $ bin/hdfs dfs -put etc/hadoop input 执行命令后,我遇到一个问题: $ bin/hdfs dfs -put etc/hadoop input

The error message is: put:'input': No such file or directory 错误消息是: put:'input': No such file or directory

How to resolve this? 如何解决呢?

Also, I have edited the hadoop-env.sh with the statement: export HADOOP_PREFIX=/usr/local/hadoop , but cannot understand that why shell prints out the warning: /usr/local/hadoop/etc/hadoop/hadop-env.sh: line 32: export:='/usr/local/hadoop': not a valid identifier 另外,我用以下语句编辑了hadoop-env.sh export HADOOP_PREFIX=/usr/local/hadoop ,但是不明白为什么shell会输出警告: /usr/local/hadoop/etc/hadoop/hadop-env.sh: line 32: export:='/usr/local/hadoop': not a valid identifier

Thanks for the help. 谢谢您的帮助。

I have fixed this problem. 我已经解决了这个问题。

I created the directory: $ bin/hdfs dfs -mkdir /user/root and the problem got solved, as I was logged in as the root in ubuntu. 我创建了目录: $ bin/hdfs dfs -mkdir /user/root ,当我以ubuntu的root用户身份登录时,问题得到了解决。 Earlier, I was giving wrong username, hence, facing the issue. 早些时候,我输入了错误的用户名,因此面临该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM