Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-2998 Making Hive run on Windows Server and Windows Azure environment
  3. HIVE-3172

Remove the duplicate JAR entries from the (“test.classpath”) to avoid command line exceeding char limit on windows

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • Tests, Windows
    • Windows

    Description

      The maximum length of the DOS command string is 8191 characters (in Windows latest versions http://support.microsoft.com/kb/830473). Following entries in the “build-common.xml” are adding lot of duplicate JAR entries to the “test.classpath” and it exceeds the max character limit on windows very easily.

      <!-- Include build/dist/lib on the classpath before Ivy and exclude hive jars from Ivy to make sure we get the local changes when we test Hive -->
      <fileset dir="${build.dir.hive}/dist/lib" includes=".jar" erroronmissingdir="false" excludes="/hive_contrib.jar,*/hive-contrib.jar,*/lib.jar"/>
      <fileset dir="${hive.root}/build/ivy/lib/test" includes=".jar" erroronmissingdir="false" excludes="/hive_.jar,*/hive-.jar"/>
      <fileset dir="${hive.root}/build/ivy/lib/default" includes=".jar" erroronmissingdir="false" excludes="/hive_.jar,*/hive-.jar" />
      <fileset dir="${hive.root}/testlibs" includes="*.jar"/>

      Proposed solution (workaround)–
      1)Include all JARs from dist\lib excluding "*/hive_contrib.jar,*/hive-contrib.jar,*/lib.jar"
      2)Select the specific jars (missing jars) from test/other folders, (that includes Hadoop-*.jar files)

      Thanks

      Attachments

        1. HIVE-3172.1.patch.txt
          9 kB
          Kanna Karanam
        2. HIVE-3172.2.patch.txt
          14 kB
          Kanna Karanam
        3. HIVE-3172.3.patch.txt
          13 kB
          Kanna Karanam

        Issue Links

          Activity

            People

              kannakar@microsoft.com Kanna Karanam
              kannakar@microsoft.com Kanna Karanam
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: