Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2145

Default Hive home is not being set properly under certain circumstances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.6
    • 1.4.6
    • None
    • None

    Description

      Currently, we have a bunch of _HOME defaults that are detected in bin/configure-sqoop. However, HIVE_HOME is not there. The only default for HIVE_HOME is hardcoded in java at https://github.com/apache/sqoop/blob/trunk/src/java/org/apache/sqoop/SqoopOptions.java#L64

      and that's not enough. The reason is often times people have tarballs like
      ~/sqoop, ~/hive, etc. and it would be good to have their hive import jobs work out of the book. It makes sense to add some smartness (we already have that for other components like hcatalog) related to HIVE_HOME in configure-sqoop.

      This doesn't regress anything because it only sets the HIVE_HOME if it's not already set and the directory it's setting it to exists and is valid.

      Attachments

        1. SQOOP-2145.1.patch
          0.6 kB
          Mark Grover

        Issue Links

          Activity

            People

              mgrover Mark Grover
              mgrover Mark Grover
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: