4.1编译出错,无法加载主类
Description
Resource
Path
Location
Type
The container 'Maven Dependencies' references non existing library 'C:\Users\admin\.m2\repository\org\apache
\hadoop\hadoop-yarn-project\2.7.2\hadoop-yarn-project-2.7.2.jar'
SparkApps
Build pathBuild Path Problem
4.2 运行仍然有问题,考虑检查虚拟机的集群问题,在虚拟机上运行
[root@master mapreduce]#hadoop jar hadoop-mapreduce-examples-2.6.0.jar w
hadoop jar hadoop-mapreduce-examples-2.6.0.jar wordcount hdfs://Master:9000/wordcount/input hdfs://Master:9000/wordcount/output
hdfs://192.168.2.100:9000/wordcount/output already exists
at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:146)
at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:562)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:432)
改成
hdfs://192.168.2.100:9000/wordcount/input hdfs://192.168.2.100:9000/wordcount/output2
[root@master hadoop]#hadoop dfs -chmod 777 /wordcount
4.4再次运行,再次出错:
Exception in thread "main" java.lang.NullPointerException
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012)
at org.apache.hadoop.util.Shell.runCommand(Shell.java:482)
Exception in thread "main" org.apache.hadoop.net.ConnectTimeoutException: Call From pc/192.168.3.6 to master:9000 failed on socket timeout exception: org.apache.hadoop.net.ConnectTimeoutException: 20000 millis timeout while waiting for channel to be ready for connect. ch : java.nio.channels.SocketChannel[connection-pending remote=master/180.168.41.175:9000]; For more details see: http://wiki.apache.org/hadoop/SocketTimeout
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2、改成ip地址解决:
String uri = "hdfs://master:9000/";
改成
String uri = "hdfs://192.168.2.100:9000/";
[root@master hadoop]#hadoop dfs -ls /
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.16/02/09 04:35:26 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
4/修改权限,解决方法
hadoop dfs -chmod 777 /
[root@master hadoop]#hadoop dfs -chmod 777 /
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
16/02/09 04:39:23 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using
builtin-java classes where applicable
[root@master hadoop]#
5/运行正常了,
运行结果:
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
FileStatus{path=hdfs://192.168.2.100:9000/README.txt; isDirectory=false; length=1366; replication=1;
spring
【控制反转(IOC)/依赖注入(DI)】:
由容器控制程序之间的关系,而非传统实现中,由程序代码直接操控。这也就是所谓“控制反转”的概念所在:控制权由应用代码中转到了外部容器,控制权的转移,是所谓反转。
简单的说:对象的创建又容器(比如spring容器)来执行,程序里不直接new对象。
Web
【单点登录(SSO)】:SSO的定义是在多个应用系统中,用户
Bellman-Ford算法(根据发明者 Richard Bellman 和 Lester Ford 命名)是求解单源最短路径问题的一种算法。单源点的最短路径问题是指:给定一个加权有向图G和源点s,对于图G中的任意一点v,求从s到v的最短路径。有时候这种算法也被称为 Moore-Bellman-Ford 算法,因为 Edward F. Moore zu 也为这个算法的发展做出了贡献。
与迪科
Microsoft .NET Framework 3.5 Service Pack 1(完整软件包)
http://www.microsoft.com/zh-cn/download/details.aspx?id=25150
Microsoft .NET Framework 3.5 Service Pack 1 是一个累积更新,包含很多基于 .NET Framewo
public final class ViewStub extends View
java.lang.Object
android.view.View
android.view.ViewStub
类摘要: ViewStub 是一个隐藏的,不占用内存空间的视图对象,它可以在运行时延迟加载布局资源文件。当 ViewSt