Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Pig script error: ​File does not exist: /tmp/.pigjobs

Re: Pig script error: ​File does not exist: /tmp/.pigjobs

New Contributor

Do you know why it can't create output file? Can it be some settings that I have to change?

Re: Pig script error: ​File does not exist: /tmp/.pigjobs

Expert Contributor

It looks like you are running this job in /tmp directory and you have no permission to create a directory in /tmp folder. Please run this job in your home directory and you will not see this issue any more.

Re: Pig script error: ​File does not exist: /tmp/.pigjobs

New Contributor

Getting same error; I am following Hadoop Tutorial and got error for Step 3.4.1 Execute Pig script.

File does not exist: /tmp/.pigjobs/riskfactorpig_02-05-2016-14-41-15/stderr at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf(INodeFile.java:71) at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf(INodeFile.java:61) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocationsInt(FSNamesystem.java:1828) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1799) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1712) at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getBlockLocations(NameNodeRpcServer.java:652) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getBlockLocations(ClientNamenodeProtocolServerSideTranslatorPB.java:365) at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2151) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2147) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2145)

1. I checked for the file and it appeared(some moments later) "/tmp/.pigjobs/riskfactorpig_02-05-2016-14-41-15/stderr". (attached content of stderr)

2. /tmp/.pigjobs/riskfactorpig_02-05-2016-14-41-15/exit (output: 0 "zero")

3. /tmp/.pigjobs/riskfactorpig_02-05-2016-14-41-15/stdout (output: blank)

4. In Pig user view: Following "Last Results" is showing Error for "riskfactor.pig" script file.

5. Owner permissions: riskfactorpig_02-05-2016-14-41-15= -rwxrwxrwx and stderr= --rw-r--r--

6. Owner Group: hdfs

As output in stderr shows

A. "Warn: org.apache.hadoop.security.UserGroupInformation - No groups available for user username", how to resolve this?

B. "Success" at the end; Why is the error then?

Thanks in advance.

Don't have an account?
Coming from Hortonworks? Activate your account here