Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8474

Impala compilation breaks with libhdfs in 2.7 as getJNIEnv is not visible

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.7.0
    • Fix Version/s: None
    • Component/s: build, libhdfs
    • Labels:
      None
    • Environment:

      Red Hat Enterprise Linux Server release 6.4 and gcc 4.3.4

    • Target Version/s:

      Description

      Impala in CDH 5.2.0 is not compiling with libhdfs.so in 2.7.0 on RedHat 6.4.
      This is because getJNIEnv is not visible in the so file.

      Compilation fails with below error message :
      ../../build/release/exec/libExec.a(hbase-table-scanner.cc.o): In function `impala::HBaseTableScanner::Init()':
      /usr1/code/Impala/code/current/impala/be/src/exec/hbase-table-scanner.cc:113: undefined reference to `getJNIEnv'
      ../../build/release/exprs/libExprs.a(hive-udf-call.cc.o):/usr1/code/Impala/code/current/impala/be/src/exprs/hive-udf-call.cc:227: more undefined references to `getJNIEnv' follow
      collect2: ld returned 1 exit status
      make[3]: *** [be/build/release/service/impalad] Error 1
      make[2]: *** [be/src/service/CMakeFiles/impalad.dir/all] Error 2
      make[1]: *** [be/src/service/CMakeFiles/impalad.dir/rule] Error 2
      make: *** [impalad] Error 2
      Compiler Impala Failed, exit

      libhdfs.so.0.0.0 returns nothing when following command is run.
      "nm -D libhdfs.so.0.0.0 | grep getJNIEnv"

      The change in HDFS-7879 breaks the backward compatibility of libhdfs although it can be argued that Impala shouldn't be using above API.

        Attachments

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              varun_saxena Varun Saxena Assign to me
              Reporter:
              varun_saxena Varun Saxena

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment