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.

ViewFs is not supported on Hive clusters?

Highlighted

ViewFs is not supported on Hive clusters?

New Contributor

Now I'm trying to use viewfs for NameNode Federation with HDP3.1.
I found "ViewFs is not supported on Hive clusters." on the following page.
https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.3.0/managing-and-monitoring-ambari/content/amb_...

Does it mean viewfs is not supported on Hive services?
(I can't get the meaning of "Hive clusters".)
Thank you for your any help :)

1 REPLY 1

Re: ViewFs is not supported on Hive clusters?

New Contributor

One update. Hive seems to have an issue about handling "viewfs://"?

For example, hive db creation got failed with permission error even if the permission of the target hdfs dir is 777.

HDFS permission:

hdfs dfs -ls -d viewfs://fed/user/hadoop/warehouse/hadoop_viewfs6.db

drwxrwxrwx - hadoop hadoop 0 2019-04-24 07:44 viewfs://fed/user/hadoop/warehouse/hadoop_viewfs6.db


Hive DB creation got failed with the hdfs dir.

0: jdbc:hive2://XXXX > create database hadoop_viewfs6 location '/user/hadoop/warehouse/hadoop_viewfs6.db';

Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [hadoop] does not have [WRITE] privilege on [viewfs://fed/user/hadoop/warehouse/hadoop_viewfs6.db] (state=42000,code=40000


Succeeded with "hdfs://"

0: jdbc:hive2://XXXX > create database hadoop_viewfs6 location 'hdfs://ns1/user/hadoop/warehouse/hadoop_viewfs6.db';
Don't have an account?
Coming from Hortonworks? Activate your account here