Member since
09-25-2015
356
Posts
382
Kudos Received
62
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2439 | 11-03-2017 09:16 PM | |
1917 | 10-17-2017 09:48 PM | |
3816 | 09-18-2017 08:33 PM | |
4510 | 08-04-2017 04:14 PM | |
3458 | 05-19-2017 06:53 AM |
10-21-2015
06:17 PM
Couldn't add a longer reply for some reason so replied as an answer see below.
... View more
10-21-2015
06:17 PM
1 Kudo
Did you try adding /etc/hive/conf, it will be the location where your hive-site.xml is? AFAIK for a single user case you should not need to do anything with UGI object. For a multi-user case, you can do something like: UserGroupInformation ugi = UserGroupInformation.loginUserFromKeytabAndReturnUGI(user, keytabfile);
Connection con = (Connection) ugi.doAs(new PrivilegedExceptionAction<Object>() {
public Object run() {
Connection tcon = null;
try {
tcon = DriverManager.getConnection(connectionURL, user, passwd);
} catch (SQLException e) {}
return tcon;
}
}); Refer to Hive Wiki.
... View more
10-21-2015
04:40 PM
For a single user case you may not have to do programmatic login, did you try including /etc/hive/conf in the classpath of your Java client?
... View more
10-21-2015
04:06 PM
Did you do kinit on the shell where you run the Java client from?
... View more
10-21-2015
02:58 AM
2 Kudos
In HDP 1.x we had documented support for HA for master services with vSphere, it is documented here. There is a Hortonworks blog that was published around Apache Ambari and VMware vSphere BDE last year. VMWare blog has video showing how to use Ambari with vSphere HDP 2.1. The new VMWare vSphere (v6.0) BDE 2.2 announcement mentions support for Ambari 1.7 with HDP 2.2.
... View more
10-20-2015
12:46 AM
1 Kudo
Is the DROP TABLE command hanging or is just outright fails? If its hanging it would be good to see the stack dump from the cli to determine where it hangs. The other option is to manually delete the HDFS directory (recursive remove) of the offending table followed by a drop table if exists <tablename>.
... View more
10-20-2015
12:41 AM
1 Kudo
There is an internal bug that is tracking this at Hortonworks.
... View more
10-19-2015
06:02 AM
Make sure hbase is installed on the machine where you are running the hive cli from. In presence of hbase install, hive cli automatically includes the required hbase libraries in the classpath.
... View more
10-16-2015
06:46 PM
2 Kudos
Have you followed the instructions from Ambari documentation for configuring Hive view. It states there: Ambari views use the doAs option for commands. This option enables the Ambari process user to impersonate the Ambari logged-in user. To avoid receiving permissions errors for job submissions and file save operations, you must create HDFS users for all Ambari users that use the views. The HDFS permission error that you are showing above: org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE, inode="/user/root":hdfs:hdfs:drwxr-xr-x It clearly shows that the /user/root which is the default user home of root user on HDFS is not owned by root, that's a problem. Can you make sure that /user/root is created with ownership of root user. Also if the authorization mode in Hive is StorageBased then /apps/hive/warehouse should be writable by root. This is usually accomplished by having the executing user in the same group as the one that has write permissions on /apps/hive/warehouse. I would also guess that in your current setup any query that requires a job to be run will fail. Simple metadata queries would succeed.
... View more
10-16-2015
04:55 PM
Could table_name be an external table with location that is readable by admin?
... View more