[ https://issues.apache.org/jira/browse/HIVE-10528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14549336#comment-14549336 ]
Hive QA commented on HIVE-10528: -------------------------------- {color:red}Overall{color}: -1 no tests executed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12733626/HIVE-10528.1.patch Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/3932/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/3932/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-3932/ Messages: {noformat} **** This message was trimmed, see log for full details **** [INFO] Excluding org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde from the shaded jar. [INFO] Excluding org.apache.calcite:calcite-avatica:jar:1.2.0-incubating from the shaded jar. [INFO] Including com.google.guava:guava:jar:14.0.1 in the shaded jar. [INFO] Including com.google.protobuf:protobuf-java:jar:2.5.0 in the shaded jar. [INFO] Including com.googlecode.javaewah:JavaEWAH:jar:0.3.2 in the shaded jar. [INFO] Including org.iq80.snappy:snappy:jar:0.2 in the shaded jar. [INFO] Including org.json:json:jar:20090211 in the shaded jar. [INFO] Excluding stax:stax-api:jar:1.0.1 from the shaded jar. [INFO] Including net.sf.opencsv:opencsv:jar:2.3 in the shaded jar. [INFO] Excluding jline:jline:jar:2.12 from the shaded jar. [INFO] Excluding org.apache.tez:tez-api:jar:0.5.2 from the shaded jar. [INFO] Excluding org.apache.hadoop:hadoop-annotations:jar:2.4.0 from the shaded jar. [INFO] Excluding org.apache.hadoop:hadoop-yarn-api:jar:2.4.0 from the shaded jar. [INFO] Excluding org.apache.hadoop:hadoop-yarn-common:jar:2.4.0 from the shaded jar. [INFO] Excluding com.google.inject.extensions:guice-servlet:jar:3.0 from the shaded jar. [INFO] Excluding com.google.inject:guice:jar:3.0 from the shaded jar. [INFO] Excluding javax.inject:javax.inject:jar:1 from the shaded jar. [INFO] Excluding aopalliance:aopalliance:jar:1.0 from the shaded jar. [INFO] Excluding com.sun.jersey.contribs:jersey-guice:jar:1.9 from the shaded jar. [INFO] Excluding org.apache.commons:commons-collections4:jar:4.0 from the shaded jar. [INFO] Excluding org.apache.tez:tez-runtime-library:jar:0.5.2 from the shaded jar. [INFO] Excluding org.apache.tez:tez-common:jar:0.5.2 from the shaded jar. [INFO] Excluding org.apache.tez:tez-runtime-internals:jar:0.5.2 from the shaded jar. [INFO] Excluding org.apache.tez:tez-mapreduce:jar:0.5.2 from the shaded jar. [INFO] Excluding commons-collections:commons-collections:jar:3.2.1 from the shaded jar. [INFO] Excluding org.apache.spark:spark-core_2.10:jar:1.3.1 from the shaded jar. [INFO] Excluding com.twitter:chill_2.10:jar:0.5.0 from the shaded jar. [INFO] Excluding com.twitter:chill-java:jar:0.5.0 from the shaded jar. [INFO] Excluding org.apache.hadoop:hadoop-client:jar:1.2.1 from the shaded jar. [INFO] Excluding org.apache.spark:spark-network-common_2.10:jar:1.3.1 from the shaded jar. [INFO] Excluding org.apache.spark:spark-network-shuffle_2.10:jar:1.3.1 from the shaded jar. [INFO] Excluding net.java.dev.jets3t:jets3t:jar:0.7.1 from the shaded jar. [INFO] Excluding org.apache.curator:curator-recipes:jar:2.6.0 from the shaded jar. [INFO] Excluding org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016 from the shaded jar. [INFO] Excluding org.apache.commons:commons-math3:jar:3.1.1 from the shaded jar. [INFO] Excluding org.slf4j:jul-to-slf4j:jar:1.7.10 from the shaded jar. [INFO] Excluding org.slf4j:jcl-over-slf4j:jar:1.7.10 from the shaded jar. [INFO] Excluding com.ning:compress-lzf:jar:1.0.0 from the shaded jar. [INFO] Excluding net.jpountz.lz4:lz4:jar:1.2.0 from the shaded jar. [INFO] Excluding org.roaringbitmap:RoaringBitmap:jar:0.4.5 from the shaded jar. [INFO] Excluding commons-net:commons-net:jar:2.2 from the shaded jar. [INFO] Excluding org.spark-project.akka:akka-remote_2.10:jar:2.3.4-spark from the shaded jar. [INFO] Excluding org.spark-project.akka:akka-actor_2.10:jar:2.3.4-spark from the shaded jar. [INFO] Excluding com.typesafe:config:jar:1.2.1 from the shaded jar. [INFO] Excluding org.spark-project.protobuf:protobuf-java:jar:2.5.0-spark from the shaded jar. [INFO] Excluding org.uncommons.maths:uncommons-maths:jar:1.2.2a from the shaded jar. [INFO] Excluding org.spark-project.akka:akka-slf4j_2.10:jar:2.3.4-spark from the shaded jar. [INFO] Excluding org.scala-lang:scala-library:jar:2.10.4 from the shaded jar. [INFO] Excluding org.json4s:json4s-jackson_2.10:jar:3.2.10 from the shaded jar. [INFO] Excluding org.json4s:json4s-core_2.10:jar:3.2.10 from the shaded jar. [INFO] Excluding org.json4s:json4s-ast_2.10:jar:3.2.10 from the shaded jar. [INFO] Excluding org.scala-lang:scalap:jar:2.10.0 from the shaded jar. [INFO] Excluding org.scala-lang:scala-compiler:jar:2.10.0 from the shaded jar. [INFO] Excluding org.apache.mesos:mesos:jar:shaded-protobuf:0.21.0 from the shaded jar. [INFO] Excluding com.clearspring.analytics:stream:jar:2.7.0 from the shaded jar. [INFO] Excluding io.dropwizard.metrics:metrics-core:jar:3.1.0 from the shaded jar. [INFO] Excluding io.dropwizard.metrics:metrics-jvm:jar:3.1.0 from the shaded jar. [INFO] Excluding io.dropwizard.metrics:metrics-json:jar:3.1.0 from the shaded jar. [INFO] Excluding io.dropwizard.metrics:metrics-graphite:jar:3.1.0 from the shaded jar. [INFO] Excluding com.fasterxml.jackson.core:jackson-databind:jar:2.4.4 from the shaded jar. [INFO] Excluding com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0 from the shaded jar. [INFO] Excluding com.fasterxml.jackson.core:jackson-core:jar:2.4.4 from the shaded jar. [INFO] Excluding com.fasterxml.jackson.module:jackson-module-scala_2.10:jar:2.4.4 from the shaded jar. [INFO] Excluding org.scala-lang:scala-reflect:jar:2.10.4 from the shaded jar. [INFO] Excluding oro:oro:jar:2.0.8 from the shaded jar. [INFO] Excluding org.tachyonproject:tachyon-client:jar:0.5.0 from the shaded jar. [INFO] Excluding org.tachyonproject:tachyon:jar:0.5.0 from the shaded jar. [INFO] Excluding org.spark-project:pyrolite:jar:2.0.1 from the shaded jar. [INFO] Excluding net.sf.py4j:py4j:jar:0.8.2.1 from the shaded jar. [INFO] Excluding org.spark-project.spark:unused:jar:1.0.0 from the shaded jar. [INFO] Excluding org.apache.hadoop:hadoop-core:jar:1.2.1 from the shaded jar. [INFO] Excluding xmlenc:xmlenc:jar:0.52 from the shaded jar. [INFO] Excluding com.sun.jersey:jersey-core:jar:1.14 from the shaded jar. [INFO] Excluding com.sun.jersey:jersey-json:jar:1.14 from the shaded jar. [INFO] Excluding org.codehaus.jettison:jettison:jar:1.1 from the shaded jar. [INFO] Excluding com.sun.xml.bind:jaxb-impl:jar:2.2.3-1 from the shaded jar. [INFO] Excluding org.codehaus.jackson:jackson-jaxrs:jar:1.9.2 from the shaded jar. [INFO] Excluding org.codehaus.jackson:jackson-xc:jar:1.9.2 from the shaded jar. [INFO] Excluding com.sun.jersey:jersey-server:jar:1.14 from the shaded jar. [INFO] Excluding asm:asm:jar:3.1 from the shaded jar. [INFO] Excluding commons-configuration:commons-configuration:jar:1.6 from the shaded jar. [INFO] Excluding commons-digester:commons-digester:jar:1.8 from the shaded jar. [INFO] Excluding commons-beanutils:commons-beanutils:jar:1.7.0 from the shaded jar. [INFO] Excluding commons-beanutils:commons-beanutils-core:jar:1.8.0 from the shaded jar. [INFO] Excluding org.mortbay.jetty:jetty:jar:6.1.26 from the shaded jar. [INFO] Excluding org.mortbay.jetty:servlet-api:jar:2.5-20081211 from the shaded jar. [INFO] Excluding org.mortbay.jetty:jetty-util:jar:6.1.26 from the shaded jar. [INFO] Excluding tomcat:jasper-runtime:jar:5.5.12 from the shaded jar. [INFO] Excluding tomcat:jasper-compiler:jar:5.5.12 from the shaded jar. [INFO] Excluding org.mortbay.jetty:jsp-api-2.1:jar:6.1.14 from the shaded jar. [INFO] Excluding org.mortbay.jetty:servlet-api-2.5:jar:6.1.14 from the shaded jar. [INFO] Excluding org.mortbay.jetty:jsp-2.1:jar:6.1.14 from the shaded jar. [INFO] Excluding ant:ant:jar:1.6.5 from the shaded jar. [INFO] Excluding commons-el:commons-el:jar:1.0 from the shaded jar. [INFO] Excluding hsqldb:hsqldb:jar:1.8.0.10 from the shaded jar. [INFO] Excluding org.eclipse.jdt:core:jar:3.1.1 from the shaded jar. [INFO] Excluding org.apache.hadoop:hadoop-tools:jar:1.2.1 from the shaded jar. [INFO] Excluding org.slf4j:slf4j-api:jar:1.7.5 from the shaded jar. [INFO] Excluding org.slf4j:slf4j-log4j12:jar:1.7.5 from the shaded jar. [INFO] Replacing original artifact with shaded artifact. [INFO] Replacing /data/hive-ptest/working/apache-github-source-source/ql/target/hive-exec-1.3.0-SNAPSHOT.jar with /data/hive-ptest/working/apache-github-source-source/ql/target/hive-exec-1.3.0-SNAPSHOT-shaded.jar [INFO] Dependency-reduced POM written at: /data/hive-ptest/working/apache-github-source-source/ql/dependency-reduced-pom.xml [INFO] Dependency-reduced POM written at: /data/hive-ptest/working/apache-github-source-source/ql/dependency-reduced-pom.xml [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ hive-exec --- [INFO] Installing /data/hive-ptest/working/apache-github-source-source/ql/target/hive-exec-1.3.0-SNAPSHOT.jar to /home/hiveptest/.m2/repository/org/apache/hive/hive-exec/1.3.0-SNAPSHOT/hive-exec-1.3.0-SNAPSHOT.jar [INFO] Installing /data/hive-ptest/working/apache-github-source-source/ql/dependency-reduced-pom.xml to /home/hiveptest/.m2/repository/org/apache/hive/hive-exec/1.3.0-SNAPSHOT/hive-exec-1.3.0-SNAPSHOT.pom [INFO] Installing /data/hive-ptest/working/apache-github-source-source/ql/target/hive-exec-1.3.0-SNAPSHOT-tests.jar to /home/hiveptest/.m2/repository/org/apache/hive/hive-exec/1.3.0-SNAPSHOT/hive-exec-1.3.0-SNAPSHOT-tests.jar [INFO] Installing /data/hive-ptest/working/apache-github-source-source/ql/target/hive-exec-1.3.0-SNAPSHOT-core.jar to /home/hiveptest/.m2/repository/org/apache/hive/hive-exec/1.3.0-SNAPSHOT/hive-exec-1.3.0-SNAPSHOT-core.jar [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Hive Service 1.3.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ hive-service --- [INFO] Deleting /data/hive-ptest/working/apache-github-source-source/service/target [INFO] Deleting /data/hive-ptest/working/apache-github-source-source/service (includes = [datanucleus.log, derby.log], excludes = []) [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-no-snapshots) @ hive-service --- [INFO] [INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ hive-service --- [INFO] Source directory: /data/hive-ptest/working/apache-github-source-source/service/src/model added. [INFO] Source directory: /data/hive-ptest/working/apache-github-source-source/service/src/gen/thrift/gen-javabean added. [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ hive-service --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hive-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /data/hive-ptest/working/apache-github-source-source/service/src/main/resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-antrun-plugin:1.7:run (define-classpath) @ hive-service --- [INFO] Executing tasks main: [INFO] Executed tasks [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hive-service --- [INFO] Compiling 177 source files to /data/hive-ptest/working/apache-github-source-source/service/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /data/hive-ptest/working/apache-github-source-source/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java:[543,2] reached end of file while parsing [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Hive .............................................. SUCCESS [18.657s] [INFO] Hive Shims Common ................................. SUCCESS [14.905s] [INFO] Hive Shims 0.20S .................................. SUCCESS [3.425s] [INFO] Hive Shims 0.23 ................................... SUCCESS [10.526s] [INFO] Hive Shims Scheduler .............................. SUCCESS [2.198s] [INFO] Hive Shims ........................................ SUCCESS [2.655s] [INFO] Hive Common ....................................... SUCCESS [14.144s] [INFO] Hive Serde ........................................ SUCCESS [15.912s] [INFO] Hive Metastore .................................... SUCCESS [37.378s] [INFO] Hive Ant Utilities ................................ SUCCESS [2.114s] [INFO] Spark Remote Client ............................... SUCCESS [24.064s] [INFO] Hive Query Language ............................... SUCCESS [2:48.913s] [INFO] Hive Service ...................................... FAILURE [3.717s] [INFO] Hive Accumulo Handler ............................. SKIPPED [INFO] Hive JDBC ......................................... SKIPPED [INFO] Hive Beeline ...................................... SKIPPED [INFO] Hive CLI .......................................... SKIPPED [INFO] Hive Contrib ...................................... SKIPPED [INFO] Hive HBase Handler ................................ SKIPPED [INFO] Hive HCatalog ..................................... SKIPPED [INFO] Hive HCatalog Core ................................ SKIPPED [INFO] Hive HCatalog Pig Adapter ......................... SKIPPED [INFO] Hive HCatalog Server Extensions ................... SKIPPED [INFO] Hive HCatalog Webhcat Java Client ................. SKIPPED [INFO] Hive HCatalog Webhcat ............................. SKIPPED [INFO] Hive HCatalog Streaming ........................... SKIPPED [INFO] Hive HWI .......................................... SKIPPED [INFO] Hive ODBC ......................................... SKIPPED [INFO] Hive Shims Aggregator ............................. SKIPPED [INFO] Hive TestUtils .................................... SKIPPED [INFO] Hive Packaging .................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:21.486s [INFO] Finished at: Mon May 18 18:04:17 EDT 2015 [INFO] Final Memory: 149M/636M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hive-service: Compilation failure [ERROR] /data/hive-ptest/working/apache-github-source-source/service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java:[543,2] reached end of file while parsing [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :hive-service + exit 1 ' {noformat} This message is automatically generated. ATTACHMENT ID: 12733626 - PreCommit-HIVE-TRUNK-Build > Hiveserver2 in HTTP mode is not applying auth_to_local rules > ------------------------------------------------------------ > > Key: HIVE-10528 > URL: https://issues.apache.org/jira/browse/HIVE-10528 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 1.0.0, 1.2.0, 1.1.0, 1.3.0 > Environment: Centos 6 > Reporter: Abdelrahman Shettia > Assignee: Abdelrahman Shettia > Attachments: HIVE-10528.1.patch, HIVE-10528.1.patch > > > PROBLEM: Authenticating to HS2 in HTTP mode with Kerberos, auth_to_local > mappings do not get applied. Because of this various permissions checks > which rely on the local cluster name for a user are going to fail. > STEPS TO REPRODUCE: > 1. Create kerberos cluster and HS2 in HTTP mode > 2. Create a new user, test, along with a kerberos principal for this user > 3. Create a separate principal, mapped-test > 4. Create an auth_to_local rule to make sure that mapped-test is mapped to > test > 5. As the test user, connect to HS2 with beeline and create a simple table: > {code} > CREATE TABLE permtest (field1 int); > {code} > There is no need to load anything into this table. > 6. Establish that it works as the test user: > {code} > show create table permtest; > {code} > 7. Drop the test identity and become mapped-test > 8. Re-connect to HS2 with beeline, re-run the above command: > {code} > show create table permtest; > {code} > You will find that when this is done in HTTP mode, you will get an HDFS error > (because of StorageBasedAuthorization doing a HDFS permissions check) and the > user will be mapped-test and NOT test as it should be. > ANALYSIS: This appears to be HTTP specific and the problem seems to come in > {{ThriftHttpServlet$HttpKerberosServerAction.getPrincipalWithoutRealmAndHost()}}: > {code} > try { > fullKerberosName = > ShimLoader.getHadoopShims().getKerberosNameShim(fullPrincipal); > } catch (IOException e) { > throw new HttpAuthenticationException(e); > } > return fullKerberosName.getServiceName(); > {code} > getServiceName applies no auth_to_local rules. Seems like maybe this should > be getShortName()? -- This message was sent by Atlassian JIRA (v6.3.4#6332)