Tag Archives: path

IDEA Run mapreduce error: PATH Set Error [How to Solve]

Error Message:
[root@node01 servers]# hadoop jar loginVisit.jar cn.itcast.loginVisit.step1.Step1Main
19/07/17 22:14:59 INFO client.RMProxy: Connecting to ResourceManager at node01/192.168.8.100:8032
19/07/17 22:14:59 WARN security.UserGroupInformation: PriviledgedActionException as:root (auth:SIMPLE) cause:java.net.ConnectException: Call From node01.hadoop.com/192.168.8.100 to node02:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
Exception in thread “main” java.net.ConnectException: Call From node01.hadoop.com/192.168.8.100 to node02:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 

 

Solution:
Step1Main.java, path set error.
TextOutputFormat.setOutputPath(job,new Path(“hdfs://node02:8020/loginVisit/output3”));
Change node02 to node01.

Django path Error: ‘Specifying a namespace in include() without providing an app_name ‘

The specific error prompts are as follows:

django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_ name is not supported. Set the app_
name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_ name instead.

This is the error code in using Django:

Solution:

it can be seen from the include() function that this function has two parameters, an Arg and a namespace. I also have two parameters in the code, but the exception prompts that no app is provided_ Name, you also need to pass in a binary tuple, from the sixth line of code urlconf_ module, app_ Name = Arg, you can see that arg is the tuple, and give it to app_ Name is assigned a value, so we modify the code here as follows:

The modified code is as shown above, and the problem is solved

Reflection:

The error is that the include parameter is not set