Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Pig View Will Not Run, but Grunt CLI Will

avatar
Rising Star

Hello All,

I will preface with, I have seen multiple questions of similar nature and have tried each of the solutions, but to no avail on my end and feel that a more in depth explanation may help others as well if they are to ever arrive at a similar issue.

The pig view fails, but the Grunt> CLI runs fine, so I am thinking that it may be a PIG View configuration error.

I started by researching the jira located at https://issues.apache.org/jira/browse/AMBARI-12738

I am trying to use the Pig View in Ambari 2.2.1 on HDP 2.4.2 and am running into a multitude of errors.

The script that I am running is

logs = LOAD 'server_logs.error_logs' USING org.apache.hive.hcatalog.pig.HCatLoader();
DUMP logs;

The job will fail with a "Job failed to start" Error which then only has a stack trace of

java.net.SocketTimeoutException: Read timed out

java.net.SocketTimeoutException: Read timed out

In the history logs within the view I receive the following error only

File /user/admin/pig/jobs/errlogs_20-06-2016-15-11-39/stderr not found.

I have tried this for user hdfs and admin the same problem remains, I have also just tried to load a file with PigStorage('|'), but that also returned me the same issue.

Using both Tez and MR ExecTypes, I receive the same error.

The NameNode and ResourceManager are both in High Availability mode.

I have added the appropriate proxyuser configs to both the core-site and hcat-site in HDFS and Hive configurations. I have restarted all services and Ambari-Server

The stderr file is created within the

/user/admin/pig/jobs/errlogs_20-06-2016-15-11-39/ 

directory, but does not have anything written to it. The admin/pig/ directory has full go+w 777 -R permissions, but when the stderr file is created it will only show as having 644 permissions.

Against my better judgement I issued an

hdfs dfs -chmod -R 777 /user

command to see if it was an underlying permissions issue on a file unbeknownst to me, but that also left me with the same outcome.

The Resource Manager Logs show that the application is submitted and continues to hang in the RUNNING state even after the job has been noted as "Failed to Start" through Ambari.

yarn application -list shows that there are no running Applications as well.

Has anyone figured out a solution to this problem? The stacktraces are not helpful, given they do not output more than 1-2 lines of information. My Pig View Cluster configuration is as follows:

5127-pig-config.png

1 ACCEPTED SOLUTION

avatar
Rising Star

From what I can tell this ended up being an available resources issue. I logged back in at midnight when all users had left and everything seems to be working correctly. Some of the time the Pig Job will say that it failed to start, but in the stderr/stdout it will show the results of the DUMP that I am trying to perform and since it was working fine in the grunt CLI, this was a very tricky problem to uncover.

View solution in original post

6 REPLIES 6

avatar
Rising Star
@Artem Ervits

Do you have any ideas?

avatar

@Colton Rodgers

Can you provide your hadoop.proxyusers.* properties settings?

avatar
Rising Star

5128-hadoop-proxyconfig.png

@Rahul Pathak This is what the current listing of hadoop.proxyuser is

avatar
Rising Star

From what I can tell this ended up being an available resources issue. I logged back in at midnight when all users had left and everything seems to be working correctly. Some of the time the Pig Job will say that it failed to start, but in the stderr/stdout it will show the results of the DUMP that I am trying to perform and since it was working fine in the grunt CLI, this was a very tricky problem to uncover.

avatar
Expert Contributor

Hi @Colton Rodgers I assume webhcat/templeton not responding fast enough to the call hence the read timeout error. The grunt shell call does not go through webhcat I believe. Any suggestions from your perspective that we can do better to improving of isolating the issue?

avatar
Rising Star

@rmolina The webhcat response time did end up seeming to be the result of the issue. I do believe that being able to block off a certain amount of memory for WebHCat specifically ( I think this may already be available with templeton.mapper.memory.mb ), but that is just the mapper memory and I haven't looked too much farther into it. When there are no other users using the cluster, the Pig GUI view will run fine, but as that is not going to be the case for most Prod clusters that we deploy, I think that being able to set a reserve specifically in the WebHCat-Env or WebHCat-Site could prove to be useful in making sure the resources are properly allocated.