Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-3452

Explore not working with secure Hive 0.14

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0, 3.1.2
    • Component/s: CDAP
    • Labels:
    • Release Notes:
      Fixed a bug that prevented explore service working on clusters with secure hive 0.14
    • Rank:
      1|hzyyfb:

      Description

      Explore is not working against secure hive-0.14.

      Environment: 3-node HDP 2.2.4.2 cluster, kerberos enabled (with a workaround for https://issues.cask.co/browse/CDAP-3424), CDAP 3.1.1-2

      Upon deploying an app, it fails to enable explore on datasets, and deploy fails:

      Upload failed co.cask.cdap.explore.service.ExploreException: Cannot enable explore on stream wordStream. Reason: Response code: 500, message: 'Internal Server Error', body: 'java.lang.RuntimeException: co.cask.tephra.TransactionFailureException: Transaction function failure for transaction. '
      

      trying to explore via CLI:

      cdap (http://myhost:10000/default)> execute 'SHOW TABLES'
      Error: co.cask.cdap.explore.service.ExploreException: Cannot execute query. Reason: Response code: 500, message: 'Internal Server Error', body: ''
      

      corresponding master.log:

      2015-08-19T22:51:30,457Z ERROR c.c.c.e.c.ExploreFacade [myhost] [New I/O worker #3] ExploreFacade:handleExploreFuture(ExploreFacade.java:162) - enable explore di
      d not finish successfully for stream instance dwteststream2.
      2015-08-19T22:51:30,458Z ERROR c.c.c.d.t.s.FileStreamAdmin [myhost] [New I/O worker #3] FileStreamAdmin:alterExploreStream(FileStreamAdmin.java:502) - Cannot alt
      er exploration to true for stream namespace:default/stream:dwteststream2: Cannot enable explore on stream dwteststream2. Reason: Response code: 500, message: 'Internal Server Error', body: 'java.lang.Runtim
      eException: co.cask.tephra.TransactionFailureException: Transaction function failure for transaction. '
      co.cask.cdap.explore.service.ExploreException: Cannot enable explore on stream dwteststream2. Reason: Response code: 500, message: 'Internal Server Error', body: 'java.lang.RuntimeException: co.cask.tephra.
      TransactionFailureException: Transaction function failure for transaction. '
              at co.cask.cdap.explore.client.ExploreHttpClient.doEnableExploreStream(ExploreHttpClient.java:99)
              at co.cask.cdap.explore.client.AbstractExploreClient$3.getHandle(AbstractExploreClient.java:112)
              at co.cask.cdap.explore.client.AbstractExploreClient$18.call(AbstractExploreClient.java:292)
              at co.cask.cdap.explore.client.AbstractExploreClient$18.call(AbstractExploreClient.java:289)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alvin Alvin Wang
                Reporter:
                derek Derek Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: