Member since
09-24-2015
527
Posts
136
Kudos Received
19
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2266 | 06-30-2017 03:15 PM | |
3277 | 10-14-2016 10:08 AM | |
8555 | 09-07-2016 06:04 AM | |
10329 | 08-26-2016 11:27 AM | |
1530 | 08-23-2016 02:09 PM |
02-02-2016
04:04 PM
hive> SHOW CURRENT ROLES;
OK
public
Time taken: 1.518 seconds, Fetched: 1 row(s)
hive> SHOW ROLES;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Current user : hive is not allowed to list roles. User has to belong to ADMIN role and have it as current role, for this action.
... View more
02-02-2016
03:28 PM
Hi: I have this in /usr/hdp/2.3.2.0-2950/hive/conf/hive-site.xml <property>
<name>hive.security.authorization.enabled</name>
<value>false</value>
</property>
<property>
<name>hive.security.authorization.createtable.owner.grants</name>
<value>ALL</value>
<description>the privileges automatically granted to the owner whenever a table gets created.
</description>
</property>
and I restarted all the hiveserver2 hive> GRANT SELECT ON TABLE logs TO USER bigotes WITH GRANT OPTION;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Permission denied: Principal [name=hive, type=USER] does not have following privileges for operation GRANT_PRIVILEGE [[SELECT with grant] on Object [type=TABLE_OR_VIEW, name=default.logs]] Any Suggestions?? Many many thanks
... View more
02-02-2016
09:32 AM
hive> GRANT SELECT ON TABLE logs TO bigotes WITH GRANT OPTION;
NoViableAltException(231@[734:1: ddlStatement : ( createDatabaseStatement | switchDatabaseStatement | dropDatabaseStatement | createTableStatement | dropTableStatement | truncateTableStatement | alterStatement | descStatement | showStatement | metastoreCheck | createViewStatement | dropViewStatement | createFunctionStatement | createMacroStatement | createIndexStatement | dropIndexStatement | dropFunctionStatement | reloadFunctionStatement | dropMacroStatement | analyzeStatement | lockStatement | unlockStatement | lockDatabase | unlockDatabase | createRoleStatement | dropRoleStatement | ( grantPrivileges )=> grantPrivileges | ( revokePrivileges )=> revokePrivileges | showGrants | showRoleGrants | showRolePrincipals | showRoles | grantRole | revokeRole | setRole | showCurrentRole );])
at org.apache.hadoop.hive.ql.parse.HiveParser$DFA12.specialStateTransition(HiveParser.java:47646)
at org.antlr.runtime.DFA.predict(DFA.java:80)
at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(HiveParser.java:2589)
at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1653)
at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1112)
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:396)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:308)
at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1122)
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1170)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1059)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1049)
at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:213)
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:165)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:376)
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:736)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
FAILED: ParseException line 1:6 cannot recognize input near 'GRANT' 'SELECT' 'ON' in ddl statement
... View more
02-02-2016
09:19 AM
2 Kudos
Hi: I am integrating R and hive, and when i execute this code y have this error: library(rmr2)
library(plyrmr)
library(rJava)
library(RJDBC)
library(DBI)
Sys.setenv("HADOOP_CMD"="/usr/hdp/2.3.2.0-2950/hadoop/bin/hadoop")
Sys.setenv("HADOOP_HOME"="/usr/hdp/2.3.2.0-2950/hadoop")
Sys.setenv("HADOOP_PREFIX"="/usr/hdp/2.3.2.0-2950/hadoop")
Sys.setenv("HADOOP_CONF_DIR"="/usr/hdp/2.3.2.0-2950/hadoop/conf")
Sys.setenv("HIVE_HOME"="/usr/hdp/current/hive-client/lib")
options( java.parameters = "-Xmx8g" )
drv <- JDBC("org.apache.hive.jdbc.HiveDriver", "/usr/hdp/current/hive-client/lib/hive-jdbc.jar")
conn <- dbConnect(drv, "jdbc:hive2://10.1.246.19:10000/default", "******", "*******") Feb 02, 2016 10:12:10 AM org.apache.hive.jdbc.Utils parseURLFeb 02, 2016 10:12:10 AM org.apache.hive.jdbc.Utils parseURLINFO: Resolved authority: 10.1.246.19:10000Feb 02, 2016 10:12:10 AM org.apache.hive.jdbc.Utils parseURLINFO: Supplied authorities: 10.1.246.19:10000Feb 02, 2016 10:12:10 AM org.apache.hive.jdbc.Utils parseURLINFO: Resolved authority: 10.1.246.19:10000Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], : java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Hive
02-02-2016
09:15 AM
Thanks everyone but the same error: [bigotes@lnxbig05 hadoop]$ su - hive
Password:
[hive@lnxbig05 ~]$ hive
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.2.0-2950/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.2.0-2950/spark/lib/spark-assembly-1.4.1.2.3.2.0-2950-hadoop2.7.1.2.3.2.0-2950.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
WARNING: Use "yarn jar" to launch YARN applications.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.2.0-2950/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.3.2.0-2950/spark/lib/spark-assembly-1.4.1.2.3.2.0-2950-hadoop2.7.1.2.3.2.0-2950.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Logging initialized using configuration in file:/etc/hive/2.3.2.0-2950/0/hive-log4j.properties
hive> grant select on TABLE logs to USER hue;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Permission denied: Principal [name=hive, type=USER] does not have following privileges for operation GRANT_PRIVILEGE [[SELECT with grant] on Object [type=TABLE_OR_VIEW, name=default.logs]]
hive> grant ALL on TABLE logs to USER bigotes WITH GRANT OPTION;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Permission denied: Principal [name=hive, type=USER] does not have following privileges for operation GRANT_PRIVILEGE [[SELECT with grant, INSERT with grant, UPDATE with grant, DELETE with grant] on Object [type=TABLE_OR_VIEW, name=default.logs]]
... View more
02-02-2016
08:04 AM
Hi: From my manager iam doing this: hive> GRANT SELECT ON TABLE logs TO USER hue;
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Permission denied: Principal [name=bigotes, type=USER] does not have following privileges for operation GRANT_PRIVILEGE [[SELECT with grant] on Object [type=TABLE_OR_VIEW, name=default.logs]]
hive> I don't have Kerberos installed. Any Bug??? Thanks
... View more
Labels:
- Labels:
-
Apache Hive
02-01-2016
02:33 PM
Hi: Thanks, but its not clearly for me, the problem is from HDP cluster, or RStudio classpath. How can i redirect the steout?? Thanks
... View more
02-01-2016
02:26 PM
1 Kudo
Hi: When I submit the job from RStudio and Pig, i can see that: WARNING: Use "yarn jar" to launch YARN applications. Its is because the Manager has the yarn and mapreduce2 installed???? Thanks
... View more
Labels:
- Labels:
-
Apache YARN
01-28-2016
07:55 AM
Many Thanks: After execute de script everything is deleted, but on the ambari Interface i can see the service. [root@lnxbig05 Logs]# curl -u admin:admin -X DELETE -H "X-Requested-By: ambari" http://lnxbig05:8080/api/v1/clusters/rsicluster01/services/ACCUMULO
{
"status" : 404,
"message" : "org.apache.ambari.server.controller.spi.NoSuchResourceException: The specified resource doesn't exist: Service not found, clusterName=rsicluster01, serviceName=ACCUMULO" Also i dont no how to unistall the clients in the nodes. Many many thanks
... View more
01-27-2016
02:54 PM
1 Kudo
how to delete accumulo services and clients from ambari. I cant from UI and Rest API [root@lnxbig05 R_repository]# curl -u admin:admin -X DELETE http://lnxbig05:8080/api/v1/clusters/rsicluster01/services/ACCUMULO
{
"status" : 400,
"message" : "CSRF protection is turned on. X-Requested-By HTTP header is required." Many thanks
... View more
Labels:
- Labels:
-
Apache Accumulo
- « Previous
- Next »