Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-22-2016 03:52 PM
Hi, I've installed a local HDP 2.3.2 Sandbox using VirtualBox. When I execute any query in Hive via Ambari (currently following Hello World tutorial) it most of the time keeps 'running' without results. Yarn job scheduler does not show any running jobs. I already saw a similar issue on this forum where it was solved by an Ambari restart, but in my case restarting does not solve it. What could be the problem?
Created 01-23-2016 08:14 AM
Thanks Neeraj. I did some more testing with my VM resources and also created another HDP Sandbox on Azure (A5 2 cores 14GB). It seems that the problem is browser-dependent since with all VM instances the problem randomly occurs while using Internet Explorer but not using Firefox. Anyhow, at least for now I can proceed, thanks again.
Created 01-22-2016 07:53 PM
VM configuration matters a lot. Hope you have enough memory and resources.
Try running the same query using hive cli
login to vm using ssh as root
su - hdfs
hive
run query from hive cli and see if its working or not.
Created 01-22-2016 11:59 PM
It might be due to missing home directories in HDFS. Depending on how you run the queries, you can try running the below:
#needed to run queries from Hive view in Ambari sudo -u hdfs hdfs dfs -mkdir /user/admin sudo -u hdfs hdfs dfs -chown admin /user/admin #needed to run hive from CLI, when logged in as root sudo -u hdfs hdfs dfs -mkdir /user/root sudo -u hdfs hdfs dfs -chown root /user/root #needed to run beeline from CLI sudo -u hdfs hdfs dfs -mkdir /user/anonymous sudo -u hdfs hdfs dfs -chown anonymous /user/anonymous
Created 01-23-2016 08:16 AM
Thanks Ali. I checked the directories and the above did not exist, but this does not seem to be the problem. When I use another browser it seems the queries run succesfully (see comment below).
Created 01-23-2016 08:14 AM
Thanks Neeraj. I did some more testing with my VM resources and also created another HDP Sandbox on Azure (A5 2 cores 14GB). It seems that the problem is browser-dependent since with all VM instances the problem randomly occurs while using Internet Explorer but not using Firefox. Anyhow, at least for now I can proceed, thanks again.
Created 01-23-2016 11:52 AM
I have accepted this as best answer because you were able to proceed by changing the browser. Hope it's ok
Created 01-23-2016 12:06 PM
Thanks Neeraj