Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6824

Introduce ${hbase.local.dir} and save coprocessor jars there

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.3, 0.95.2
    • 0.94.5, 0.95.0
    • None
    • None
    • Reviewed
    • Added a configuration "hbase.local.dir" which defaults to ${hbase.tmp.dir}/local/. Coprocessor jars, and other local data for region servers are written to this location.

    Description

      We need to make the temp directory where coprocessor jars are saved configurable. For this we will add hbase.local.dir configuration parameter.

      Windows tests are failing due to the pathing problems for coprocessor jars:
      Two HBase TestClassLoading unit tests failed due to a failiure in loading the test file from HDFS:

      testClassLoadingFromHDFS(org.apache.hadoop.hbase.coprocessor.TestClassLoading): Class TestCP1 was missing on a region
      testClassLoadingFromLibDirInJar(org.apache.hadoop.hbase.coprocessor.TestClassLoading): Class TestCP1 was missing on a region
      

      The problem is that CoprocessorHost.load() copies the jar file locally, and schedules the local file to be deleted on exit, but calling FileSystem.deleteOnExit(). However, the filesystem is not the file system of the local file, it is the distributed file system, so on windows, the Path fails.

      Attachments

        1. hbase-6824_v3-0.94.patch
          9 kB
          Enis Soztutar
        2. hbase-6824_v3.patch
          9 kB
          Enis Soztutar
        3. hbase-6824_v2-trunk.patch
          12 kB
          Enis Soztutar
        4. hbase-6824_v2-0.94.patch
          12 kB
          Enis Soztutar
        5. hbase-6824_v1-trunk.patch
          4 kB
          Enis Soztutar
        6. hbase-6824_v1-0.94.patch
          4 kB
          Enis Soztutar

        Issue Links

          Activity

            People

              enis Enis Soztutar
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: