Support Questions
Find answers, ask questions, and share your expertise
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( at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf( at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocationsInt( at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations( at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations( at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getBlockLocations( at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getBlockLocations( at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod( at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ at org.apache.hadoop.ipc.RPC$ at org.apache.hadoop.ipc.Server$Handler$ at org.apache.hadoop.ipc.Server$Handler$ at Method) at at at org.apache.hadoop.ipc.Server$

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: - 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