Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-2136

Home paths are not set correctly in /etc/sqoop/conf/sqoop-env.sh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.2
    • 1.2.4
    • None
    • None

    Description

      Ambari sets the followings:
      #Set path to where bin/hadoop is available
      export HADOOP_HOME=$

      {HADOOP_HOME:-/usr}

      #set the path to where bin/hbase is available
      export HBASE_HOME=$

      {HBASE_HOME:-/usr}

      #Set the path to where bin/hive is available
      export HIVE_HOME=$

      {HIVE_HOME:-/usr}
      1. add libthrift in hive to sqoop class path first so hive imports work
        export SQOOP_USER_CLASSPATH="`ls ${HIVE_HOME}
        /lib/libthrift-*.jar 2> /dev/null`:$ {SQOOP_USER_CLASSPATH}

        "

      #Set the path for where zookeper config dir is
      export ZOOCFGDIR=${ZOOCFGDIR:-/etc/zookeeper/conf}

      It should be the followings (also screenshot is available):

      #Set path to where bin/hadoop is available
      export HADOOP_HOME=${HADOOP_HOME:-/usr/lib/hadoop}

      #set the path to where bin/hbase is available
      export HBASE_HOME=${HBASE_HOME:-/usr/lib/hbase}

      #Set the path to where bin/hive is available
      export HIVE_HOME=${HIVE_HOME:-/usr/lib/hive}

      #Set the path for where zookeper config dir is
      export ZOOCFGDIR=${ZOOCFGDIR:-/etc/zookeeper/conf}

      1. add libthrift in hive to sqoop class path first so hive imports work
        export SQOOP_USER_CLASSPATH="`ls ${HIVE_HOME}/lib/libthrift-*.jar 2> /dev/null`:${SQOOP_USER_CLASSPATH}

      Attachments

        1. AMBARI-2136.patch
          1 kB
          Mahadev Konar

        Activity

          People

            mahadev Mahadev Konar
            mahadev Mahadev Konar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: