- 浏览: 2685 次
-
最新评论
文章列表
hadoop启动后,
1.首先查看下是否有可以上传的目录,避免再创建的话会重名:
hdfs dfs -ls /
2.创建一个文件夹,专门存放要hadoop要分析的数据文件(注意,这个命令创建的文件夹好像是不存在的,你找不到的,所以你要记住你创建的这个路径文件夹,下面用得着):
hdfs dfs -mkdir -p /home/input
3.把要分析的文件上传上去:
hdfs dfs -put /etc/profile /home/input
4.可以查看下是否已经上传上去了:
hdfs dfs -ls /home/input
5.执行job ...
1: installing nodejs
- 博客分类:
- 技术类
it's so easy to install nodejs,u just download the installing package which u need version by "https://nodejs.org/" .
and install it.All steps are installed by default.
<!--[if !supportLists]-->Previous we have installed the nodejs, u can entry “node -v” in the command prompt,and list infos like below ps
Then u can next step, entry “npm install express”
But sometimes when u done previous step,u would know u cann’t create “hello” project. Don’t ...
Edit bin/startup.bat and change the line:
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
to:
set "sydate=%Date:~0,4%-%Date:~5,2%-%Date:~8,2%"
call "%EXECUTABLE%" run >>..\logs\my_%sydate%.log 2>&1 start %CMD_LINE_ ...