Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1140

Merging session jar with DB resources fails if session jar is in HDFS

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • None
    • server
    • None

    Description

      Scenario :

      DB db1 has DB resources.

      User does the following :

      use db1
      add jar hdfs://myhdfs/tmp/mynew.jar
      

      Server fails to add it to classpath. Here is the server log :

      org.apache.lens.server.AuthenticationFilter - Request from user: null , path=session/resources/add
      lensserver.log.2016-05-05.178:05 May 2016 11:01:41 [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  org.apache.hive.service.cli.operation.Operation - Putting temp output to file /tmp/lens/946c79fc-7dea-44e3-8b96-44e4a3acf4897870923792886226589.pipeout
      lensserver.log.2016-05-05.178:05 May 2016 11:01:41 [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  SessionState - converting to local hdfs://myhdfs/tmp/mynew.jar
      lensserver.log.2016-05-05.178:05 May 2016 11:01:52 [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  SessionState - Added /tmp/946c79fc-7dea-44e3-8b96-44e4a3acf489_resources/mynew.jar to class path
      lensserver.log.2016-05-05.178:05 May 2016 11:01:52 [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] INFO  SessionState - Added resource: /tmp/946c79fc-7dea-44e3-8b96-44e4a3acf489_resources/mynew.jar
      lensserver.log.2016-05-05.178:05 May 2016 11:01:52 [d302a498-4136-4fdb-91b8-c24777ac407e] [grizzly-http-server-24] ERROR org.apache.lens.server.session.DatabaseResourceService - Invalid URL hdfs://myhdfs/tmp/mynew.jar adding to db db1
      

      Attachments

        1. LENS-1140.2.patch
          25 kB
          Amareshwari Sriramadasu

        Activity

          People

            amareshwari Amareshwari Sriramadasu
            amareshwari Amareshwari Sriramadasu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: