- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
NIFI PutHiveQL Permission denied error : Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [svcda_nifi] does not have [SELECT] privilege on [default/values__tmp__table__4/*]
- Labels:
-
Apache NiFi
Created on ‎07-04-2018 04:11 PM - edited ‎08-18-2019 01:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello everyone, I created a data flow with NIFI, in which I put: SelectHiveQL ===> ConvertAvroToJSON ====> SplitJson ====> EvaluateJsonPath ===> ReplaceText ===> PutHiveQL. All the processors work well except the last "PutHiveQL" which shows me the following error. thank you in advance for your help
Created ‎07-05-2018 07:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do provide this user "svcda_nifi" select permissions on default database.
Ref : https://community.hortonworks.com/content/supportkb/198363/errorfailed-hiveaccesscontrolexception-pe... for more details.
Hope this helps.
Created ‎07-05-2018 07:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do provide this user "svcda_nifi" select permissions on default database.
Ref : https://community.hortonworks.com/content/supportkb/198363/errorfailed-hiveaccesscontrolexception-pe... for more details.
Hope this helps.
Created ‎07-05-2018 08:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Sandeep Nemuri
If i understood corectly it is a problem about user access rights to the database.
I will contact the administrator of nifi.
I will try that , thank you 🙂
Created ‎07-06-2018 08:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@SAD KHALED Please take a moment to click "Accept" if this answer helps you. 🙂
Created ‎07-12-2018 01:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @Sandeep Nemuri, it's helped me.
i found an other explanation which details the probem : https://community.hortonworks.com/questions/178176/hive-creation-of-temp-tables-in-default-database-...
" The problem seems to be around the default temporary table (at least, it is failing here before anything else). The query you make with the "VALUES" part work like this :
- it creates a temporary hive table with the line to be inserted
- it then queries that temporary table for inserting the data into the target table
From the output I see, the temporary table is created [default/values__tmp__table__3]. But the user does not have "select" permission on it.
I guess that a workaround would be to grant "SELECT" on the database "default" but this could bring some security issues for you (since the user will have read permission on all the tables inside "default"). "
