我看到了dfs命令,然后去了文档,但我无法理解.
在我看来fs和dfs工作相似.任何一个给出确切的区别?
注销后,如果我按浏览器中的“后退”按钮,它不应显示上一页,而必须转到默认页面(仅登录页面)。
因此,我尝试了多种方式(ruby on rails应用程序),例如“ history.forward()”,“ onbeforeunload”,使元标记中的缓存过期,“ http://www.brookebryan.com/后退按钮检测”如此之多。 。 我很迷茫。
有人可以提出解决方案吗?
我正在尝试运行Ruby Hadoop流程序,该程序在"Ruby的权威指南"中给出.
这是我使用的命令:
hadoop jar /usr/lib/hadoop-0.20/contrib/streaming/hadoop-streaming-0.20.2+737.jar
-input input/temperature -output output -mapper /home/cloudera/projects/max_temp/map.rb
-reducer /home/cloudera/projects/max_temp/reduce.rb
Run Code Online (Sandbox Code Playgroud)
文件路径是正确的.运行命令后,我收到如下错误:
packageJobJar: [/var/lib/hadoop-0.20/cache/cloudera/hadoop-unjar7505856816337735719/] [] /tmp/streamjob5440613434295562761.jar tmpDir=null
11/03/14 22:58:56 INFO mapred.FileInputFormat: Total input paths to process : 1
11/03/14 22:58:56 INFO streaming.StreamJob: getLocalDirs(): [/var/lib/hadoop-0.20/cache/cloudera/mapred/local]
11/03/14 22:58:56 INFO streaming.StreamJob: Running job: job_201103140235_0015
11/03/14 22:58:56 INFO streaming.StreamJob: To kill this job, run:
11/03/14 22:58:56 INFO streaming.StreamJob: /usr/lib/hadoop-0.20/bin/hadoop job -Dmapred.job.tracker=localhost:8021 -kill job_201103140235_0015
11/03/14 22:58:56 INFO streaming.StreamJob: Tracking URL: http://localhost:50030/jobdetails.jsp...
11/03/14 22:58:57 INFO streaming.StreamJob: map 0% reduce 0%
11/03/14 22:59:54 INFO …Run Code Online (Sandbox Code Playgroud) 我试图通过使用此代码访问该URL
System.setProperty("http.proxyHost", "111.88.15.108");
System.setProperty("http.proxyPort", "8002");
System.setProperty("http.proxyUser", "user");
System.setProperty("http.proxyPassword", "password");
URL oracle = new URL("http://www.google.com/");
URLConnection yc = oracle.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(
yc.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
Run Code Online (Sandbox Code Playgroud)
这在我的窗口机器上工作正常,但这在linux机器上不起作用.我这样变得很恐怖
线程"main"中的异常java.io.IOException:服务器返回HTTP响应代码:407为URL:http://www.google.com/ at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)在com.yahoo.Connection.main(Connection.java:31)
即使代理设置是正确的,我也尝试过
java -Dhttp.proxyHost="111.88.15.108" -Dhttp.proxyPort="8002" -Dhttp.proxyUser="user" -Dhttp.proxyPassword="password" -jar yahoo_test3.jar
Run Code Online (Sandbox Code Playgroud)
但相同的错误,我试图在/ etc/profile中设置导出http_proxy =但没有用
知道哪里出错了.