Christoph Körner created HIVE-15014:
---------------------------------------

             Summary: Hive Internal Error Authentication failed, status: 414, 
message: Request-URI Too Long)
                 Key: HIVE-15014
                 URL: https://issues.apache.org/jira/browse/HIVE-15014
             Project: Hive
          Issue Type: Bug
    Affects Versions: 1.2.1
         Environment: HDP-2.4.0.0-169, Tez (v0.7.0.2.4)
            Reporter: Christoph Körner


After the MapReduce phase of a `CREATE TABLE AS SELECT` statement finishes with 
100% I get an error that the Request-URI is too long. The command is executed 
via hive-cli.

Here is the stacktrace:
...
VERTICES: 15/15  [==========================>>] 100%  ELAPSED TIME: 2498.18 s

Stage-5 is selected by condition resolver.
Stage-4 is filtered out by condition resolver.
Stage-6 is filtered out by condition resolver.
Moving data to: 
hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/stage0.db/.hive-staging_hive_2016-10-13_11-27-40_213_6753585326865005523-1/-ext-10001
Moving data to: /data/tablename
Table tablename stats: [numFiles=1, numRows=791128, totalSize=8530422, 
rawDataSize=96448768]
FAILED: Hive Internal Error: 
com.sun.jersey.api.client.ClientHandlerException(java.io.IOException: 
org.apache.hadoop.security.authentication.client.AuthenticationException: 
Authentication failed, status: 414, message: Request-URI Too Long)
com.sun.jersey.api.client.ClientHandlerException: java.io.IOException: 
org.apache.hadoop.security.authentication.client.AuthenticationException: 
Authentication failed, status: 414, message: Request-URI Too Long
        at 
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
        at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
        at 
com.sun.jersey.api.client.WebResource$Builder.method(WebResource.java:623)
        at 
org.apache.atlas.AtlasClient.callAPIWithResource(AtlasClient.java:351)
        at 
org.apache.atlas.AtlasClient.callAPIWithResource(AtlasClient.java:346)
        at org.apache.atlas.AtlasClient.searchByGremlin(AtlasClient.java:294)
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.getEntityReferenceFromGremlin(HiveMetaStoreBridge.java:227)
        at 
org.apache.atlas.hive.bridge.HiveMetaStoreBridge.getProcessReference(HiveMetaStoreBridge.java:183)
        at 
org.apache.atlas.hive.hook.HiveHook.registerProcess(HiveHook.java:309)
        at org.apache.atlas.hive.hook.HiveHook.fireAndForget(HiveHook.java:214)
        at org.apache.atlas.hive.hook.HiveHook.run(HiveHook.java:172)
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1585)
        at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1254)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1118)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1108)
        at 
org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:216)
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:168)
        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:379)
        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:314)
        at 
org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:412)
        at org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:428)
        at 
org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:717)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.io.IOException: 
org.apache.hadoop.security.authentication.client.AuthenticationException: 
Authentication failed, status: 414, message: Request-URI Too Long
        at 
org.apache.atlas.security.SecureClientUtils$1$1.run(SecureClientUtils.java:107)
        at 
org.apache.atlas.security.SecureClientUtils$1$1.run(SecureClientUtils.java:99)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at 
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
        at 
org.apache.atlas.security.SecureClientUtils$1.getHttpURLConnection(SecureClientUtils.java:99)
        at 
com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:159)
        at 
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)
        ... 31 more
Caused by: 
org.apache.hadoop.security.authentication.client.AuthenticationException: 
Authentication failed, status: 414, message: Request-URI Too Long
        at 
org.apache.hadoop.security.authentication.client.AuthenticatedURL.extractToken(AuthenticatedURL.java:274)
        at 
org.apache.hadoop.security.authentication.client.PseudoAuthenticator.authenticate(PseudoAuthenticator.java:77)
        at 
org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator.authenticate(DelegationTokenAuthenticator.java:128)
        at 
org.apache.hadoop.security.authentication.client.AuthenticatedURL.openConnection(AuthenticatedURL.java:215)
        at 
org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.openConnection(DelegationTokenAuthenticatedURL.java:322)
        at 
org.apache.atlas.security.SecureClientUtils$1$1.run(SecureClientUtils.java:103)
        ... 38 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to