Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.6.0
    • Component/s: Tests
    • Labels:
      None

      Description

      Hive smoke's TestJdbcDriver seems to be failing due to libfb302 not being present in the classpath.

      Here is the error:

      java.lang.NoClassDefFoundError: com/facebook/fb303/FacebookService$Iface
      

      Here is the log:
      http://bigtop01.cloudera.org:8080/view/Bigtop-trunk/job/Bigtop-trunk-runsmokes/15/testReport/junit/org.apache.bigtop.itest.hivesmoke/TestJdbcDriver/testCreate/?

        Activity

        Hide
        Mark Grover added a comment -

        I have tested this patch and the test now passes but I wasn't able to test the teardown part of the test. The reason is the command to start hive server (HIVE_PORT=10000 hive --service hiveserver > /dev/null 2>&1 & echo $! ) 2> /dev/null doesn't seem to return any output when run from the test (i.e. sh.getOut() returns an empty array). While if I run the same command on bash, it returns the PID of the file as expected. This PID is then used in teardown. So, barring the testing of teardown method, this patch seems to work.

        I will take a closer look at itest's shell methods to see if there is another way to retrieve the PID. In the meanwhile, if anyone has any other thoughts, please let me know.

        Show
        Mark Grover added a comment - I have tested this patch and the test now passes but I wasn't able to test the teardown part of the test. The reason is the command to start hive server (HIVE_PORT=10000 hive --service hiveserver > /dev/null 2>&1 & echo $! ) 2> /dev/null doesn't seem to return any output when run from the test (i.e. sh.getOut() returns an empty array). While if I run the same command on bash, it returns the PID of the file as expected. This PID is then used in teardown. So, barring the testing of teardown method, this patch seems to work. I will take a closer look at itest's shell methods to see if there is another way to retrieve the PID. In the meanwhile, if anyone has any other thoughts, please let me know.
        Hide
        Roman Shaposhnik added a comment -

        +1 and committed!

        Show
        Roman Shaposhnik added a comment - +1 and committed!

          People

          • Assignee:
            Mark Grover
            Reporter:
            Mark Grover
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development