Windows 環境で Hadoop 圧縮コーデックを使用しようとしています。ただし、Haddop のドキュメントに記載されているように、Linux 以外のプラットフォーム用にネイティブ ライブラリをビルドする必要があります。
ここに記載されている手順に従って、Cygwin から圧縮コーデック用のネイティブ ライブラリを構築しています 。
しかし、このエラーが発生します:(ログの最後の数行)
[exec] configure: WARNING: jni.h: present but cannot be compiled
[exec] configure: WARNING: jni.h: check for missing prerequisite headers?
[exec] configure: WARNING: jni.h: see the Autoconf documentation
[exec] configure: WARNING: jni.h: section "Present But Cannot Be Compiled"
[exec] configure: WARNING: jni.h: proceeding with the preprocessor's result
[exec] configure: WARNING: jni.h: in the future, the compiler will take precedence
[exec] configure: WARNING: ## ------------------------------------------ ##
[exec] configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
[exec] configure: WARNING: ## ------------------------------------------ ##
[exec] checking for jni.h... yes
[exec] checking zlib.h usability... yes
[exec] checking zlib.h presence... yes
[exec] checking for zlib.h... yes
[exec] checking Checking for the 'actual' dynamic-library for '-lz'...
[exec] checking zconf.h usability... yes
[exec] checking zconf.h presence... yes
[exec] checking for zconf.h... yes
[exec] checking Checking for the 'actual' dynamic-library for '-lz'... (cached)
[exec] checking fcntl.h usability... yes
[exec] checking fcntl.h presence... yes
[exec] checking for fcntl.h... yes
[exec] checking for stdlib.h... (cached) yes
[exec] checking for string.h... (cached) yes
[exec] checking for unistd.h... (cached) yes
[exec] checking for an ANSI C-conforming const... yes
[exec] checking for memset... yes
[exec] checking whether strerror_r is declared... yes
[exec] checking for strerror_r... yes
[exec] checking whether strerror_r returns char *... no
[exec] configure: creating ./config.status
[exec] config.status: creating Makefile
[exec] config.status: error: cannot find input file: Makefile.in
BUILD FAILED C:\cygwin\usr\local\hadoop\build.xml:596: この行の実行中に次のエラーが発生しました: C:\cygwin\usr\local\hadoop\build.xml:645: exec が返されました: 1
また、すべての Makefile の名前を Makefile.in に変更しましたが、それでもこのエラーを回避できません。誰でもこれを修正するのを手伝ってくれませんか。
Makefile は haddop/src/native フォルダーに存在し、./configure を使用してビルドすると問題ありませんが、jar は生成されません。