Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8071

hive shell tries to write hive-exec.jar for each run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Tez
    • None
    • Hide
      "HIVE-8071: Speed up hive shell startup by avoiding hive-exec.jar uploads (Rajesh Balamohan via Gopal V)"
      Show
      " HIVE-8071 : Speed up hive shell startup by avoiding hive-exec.jar uploads (Rajesh Balamohan via Gopal V)"

    Description

      For every run of the hive CLI there is a delay for the shell startup

      14/07/31 23:07:19 INFO Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS
      14/07/31 23:07:19 INFO tez.DagUtils: Hive jar directory is hdfs://mac-10:8020/user/gopal/apps/2014-Jul-31/hive/
      14/07/31 23:07:19 INFO tez.DagUtils: Localizing resource because it does not exist: file:/home/gopal/tez-autobuild/dist/hive/lib/hive-exec-0.14.0-SNAPSHOT.jar to dest: 
      hdfs://mac-10:8020/user/gopal/apps/2014-Jul-31/hive/hive-exec-0.14.0-SNAPSHOTde1f82f0b5561d3db9e3080dfb2897210a3bda4ca5e7b14e881e381115837fd8.
      jar
      14/07/31 23:07:19 INFO tez.DagUtils: Looks like another thread is writing the same file will wait.
      14/07/31 23:07:19 INFO tez.DagUtils: Number of wait attempts: 5. Wait interval: 5000
      14/07/31 23:07:19 INFO tez.DagUtils: Resource modification time: 1406870512963
      14/07/31 23:07:20 INFO tez.TezSessionState: Opening new Tez Session (id: 02d6b558-44cc-4182-b2f2-6a37ffdd25d2, scratch dir: hdfs://mac-10:8020/tmp/hive-gopal/_tez_session_dir/02d6b558-44cc-4182-b2f2-6a37ffdd25d2)
      

      Traced this to a method which does PRIVATE LRs - this is marked as PRIVATE even if it is from a common install dir.

       public LocalResource localizeResource(Path src, Path dest, Configuration conf)
          throws IOException {
      ....
          return createLocalResource(destFS, dest, LocalResourceType.FILE,
              LocalResourceVisibility.PRIVATE);
        }
      

      Attachments

        1. HIVE-8071.2.patch
          0.7 kB
          Gopal Vijayaraghavan
        2. HIVE-8071.1.patch
          0.7 kB
          Rajesh Balamohan

        Activity

          People

            rajesh.balamohan Rajesh Balamohan
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: