diff --git a/guava-27.0-jre.jar b/guava-27.0-jre.jar new file mode 100644 index 0000000000000000000000000000000000000000..1bdd00742431308f3be6e358bbe1e1eba68f4437 Binary files /dev/null and b/guava-27.0-jre.jar differ diff --git a/hive.spec b/hive.spec new file mode 100644 index 0000000000000000000000000000000000000000..2292aa4f46a5f4dcd17c1f31e14f615937a9a6e0 --- /dev/null +++ b/hive.spec @@ -0,0 +1,129 @@ +%define __os_install_post %{nil} + +Name: hive +Version: 3.1.2 +Release: 1 +Summary: The Apache Hadoop data warehouse + +License: Apache-2.0 and Python-2.0 and MPL-2.0 and BSD and ICU +URL: http://hive.apache.org/ + +Source0: https://github.com/apache/%{name}/archive/refs/tags/rel/release-%{version}.tar.gz +Source1: xmvn-reactor +Source2: pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar +Source3: guava-27.0-jre.jar +Source4: mysql-connector-java.jar + +BuildRequires: cmake java-1.8.0-openjdk-devel maven xmvn xmvn-install gradle-local maven-local protobuf2-devel protobuf2-compiler +Requires: java-1.8.0-openjdk +Requires: hadoop-3.1-client hadoop-3.1-common hadoop-3.1-common-native hadoop-3.1-devel hadoop-3.1-hdfs hadoop-3.1-httpfs +Requires: hadoop-3.1-mapreduce hadoop-3.1-maven-plugin hadoop-3.1-yarn hadoop-3.1-yarn-security +Requires: mysql5-server +BuildArch: noarch + +%description +The Apache Hive data warehouse software facilitates querying and +managing large datasets residing in distributed storage. Apache Hive +provides a mechanism to project structure onto this data and query +the data using a SQL-like language called HiveQL. + +%prep +%setup -q -n %{name}-rel-release-%{version} +mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=linux-aarch_64 -Dpackaging=exe -Dfile=/usr/bin/protoc +mvn install:install-file -DgroupId=org.pentaho -DartifactId=pentaho-aggdesigner-algorithm -Dversion=5.1.5-jhyde -Dpackaging=jar -Dfile=%{SOURCE2} +cp %{SOURCE1} ./.xmvn-reactor +echo `pwd` > absolute_prefix.log +sed -i 's/\//\\\//g' absolute_prefix.log +absolute_prefix=`head -n 1 absolute_prefix.log` +sed -i 's/absolute-prefix/'"$absolute_prefix"'/g' .xmvn-reactor + +find -name "*.jar" -delete + +# missing shebang +sed -i -e '1d;2i#!/usr/bin/env bash' bin/hive-config.sh + +%build + +# for javadoc encoding +export LC_ALL=en_US.UTF-8 + +mvn package -DskipTests -Pdist -Dtar + +%install +%mvn_install -J build/dist/docs + +install -d -m 0755 %{buildroot}%{_datadir}/%{name}/bin +install -d -m 0755 %{buildroot}%{_datadir}/%{name}/conf +install -d -m 0755 %{buildroot}%{_datadir}/%{name}/lib +install -d -m 0755 %{buildroot}%{_datadir}/%{name}/scripts + +cp -f packaging/target/apache-%{name}-%{version}-bin/apache-%{name}-%{version}-bin/lib/hive-storage-api-2.7.0.jar %{buildroot}%{_datadir}/java/%{name}/ + +tar -C packaging/target -zxf packaging/target/apache-%{name}-%{version}-bin.tar.gz +pushd packaging/target/apache-%{name}-%{version}-bin/apache-%{name}-%{version}-bin + cp -arf bin/* %{buildroot}%{_datadir}/%{name}/bin + cp -arf conf/* %{buildroot}%{_datadir}/%{name}/conf + rm -rf lib/guava-19.0.jar + cp %{SOURCE3} lib/ + cp %{SOURCE4} lib/ + cp -arf lib/* %{buildroot}%{_datadir}/%{name}/lib + cp -arf scripts/* %{buildroot}%{_datadir}/%{name}/scripts +popd + +# create the root from here +install -d -m 0755 %{buildroot}%{_datadir}/%{name}/bin/ext +install -d -m 0755 %{buildroot}%{_datadir}/%{name}/bin/ext/util +install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name} + +# bin +install -dm 0755 %{buildroot}%{_bindir} +for f in %{name} hive-config.sh init-hive-dfs.sh metatool schematool; do + install -p bin/${f} %{buildroot}%{_datadir}/%{name}/bin + ln -s %{_datadir}/%{name}/bin/${f} %{buildroot}%{_bindir}/${f} +done + +# bin/ext/util +cp -pr bin/ext/* %{buildroot}%{_datadir}/%{name}/bin/ext + +# don't have these just yet... +for f in beeline.sh hiveserver2.sh; do + rm %{buildroot}%{_datadir}/%{name}/bin/ext/${f} +done + +# conf +for f in hive-default.xml hive-env.sh hive-exec-log4j2.properties hive-log4j2.properties; do + cp -p packaging/target/apache-hive-3.1.2-bin/conf/${f}.template %{buildroot}%{_datadir}/%{name}/conf/${f} + ln -s %{_datadir}/%{name}/conf/${f} %{buildroot}%{_sysconfdir}/%{name}/${f} +done + +# manually replace the hive jars with their links +rm %{buildroot}%{_datadir}/%{name}/lib/hive-*.jar +for m in accumulo-handler beeline classification cli common contrib druid-handler exec hbase-handler hplsql jdbc jdbc-handler kryo-registrator llap-client llap-common llap-ext-client llap-server llap-tez metastore serde service service-rpc shims shims-0.23 shims-common shims-scheduler standalone-metastore streaming testutils upgrade-acid vector-code-gen; do + ln -s %{_javadir}/%{name}/%{name}-${m}.jar %{buildroot}%{_datadir}/%{name}/lib/%{name}-${m}-%{version}.jar +done + +ln -s %{_javadir}/%{name}/hcatalog-core.jar %{buildroot}%{_datadir}/%{name}/lib/%{name}-hcatalog-core-%{version}.jar +ln -s %{_javadir}/%{name}/hcatalog-server-extensions.jar %{buildroot}%{_datadir}/%{name}/lib/%{name}-hcatalog-server-extensions-%{version}.jar +ln -s %{_javadir}/%{name}/hive-storage-api-2.7.0.jar %{buildroot}%{_datadir}/%{name}/lib/hive-storage-api-2.7.0.jar + +# MR needs the shims and thrift jars in it's classpath +mkdir -p -m0755 %{buildroot}/%{_datadir}/hadoop/mapreduce/lib +ln -s %{_javadir}/%{name}/%{name}-shims.jar %{buildroot}%{_datadir}/hadoop/mapreduce/lib/%{name}-shims.jar + +%check +# tests are not run due to dependency on hive hbase support +# which is currently unavailable + +%files -f .mfiles +%doc LICENSE NOTICE +%{_bindir}/* +%{_datadir}/%{name} +%{_sysconfdir}/%{name} +%dir %{_javadir}/%{name} +%{_datadir}/hadoop/mapreduce/lib/%{name}-shims.jar +%{_datadir}/java/%{name}/hive-storage-api-2.7.0.jar + + +%changelog +* Tue Apr 13 2021 Ge Wang 3.1.2-1 +- Init package diff --git a/mysql-connector-java.jar b/mysql-connector-java.jar new file mode 100644 index 0000000000000000000000000000000000000000..da9ebce53d815b2d1cf5d9de35b20b58aa804509 Binary files /dev/null and b/mysql-connector-java.jar differ diff --git a/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar b/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar new file mode 100644 index 0000000000000000000000000000000000000000..37ac4855b0e5af9cf6dabc9ca9fa5b30faf14394 Binary files /dev/null and b/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar differ diff --git a/release-3.1.2.tar.gz b/release-3.1.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..737bce3ff60ad50488ef2db61d894d5cdb42993f Binary files /dev/null and b/release-3.1.2.tar.gz differ diff --git a/xmvn-reactor b/xmvn-reactor new file mode 100644 index 0000000000000000000000000000000000000000..fa6b40705fdc0f18ea9f70f6eeea434ce14f7ce0 --- /dev/null +++ b/xmvn-reactor @@ -0,0 +1,601 @@ + + + + + org.apache.hive + hive-beeline + 3.1.2 + absolute-prefix/beeline/target/hive-beeline-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-beeline + pom + 3.1.2 + absolute-prefix/beeline/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-cli + 3.1.2 + absolute-prefix/cli/target/hive-cli-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-cli + pom + 2.2.5 + absolute-prefix/cli/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-common + 3.1.2 + absolute-prefix/common/target/hive-common-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-common + pom + 3.1.2 + absolute-prefix/common/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-contrib + 3.1.2 + absolute-prefix/contrib/target/hive-contrib-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-contrib + pom + 3.1.2 + absolute-prefix/contrib/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-exec + 3.1.2 + absolute-prefix/ql/target/hive-exec-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-exec + pom + 3.1.2 + absolute-prefix/ql/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-jdbc + 3.1.2 + absolute-prefix/jdbc/target/hive-jdbc-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-jdbc + pom + 3.1.2 + absolute-prefix/jdbc/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-metastore + 3.1.2 + absolute-prefix/metastore/target/hive-metastore-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-metastore + pom + 3.1.2 + absolute-prefix/metastore/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-serde + 3.1.2 + absolute-prefix/serde/target/hive-serde-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-serde + pom + 3.1.2 + absolute-prefix/serde/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-service + 3.1.2 + absolute-prefix/service/target/hive-service-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-service + pom + 3.1.2 + absolute-prefix/service/pom.xml + + jar + 1.6 + + + + + org.apache.hive + hive-shims + 3.1.2 + absolute-prefix/shims/aggregator/target/hive-shims-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-shims + pom + 3.1.2 + absolute-prefix/shims/pom.xml + + jar + 1.6 + + + + + + org.apache.hive.hcatalog + hcatalog-core + 3.1.2 + absolute-prefix/hcatalog/core/target/hive-hcatalog-core-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive.hcatalog + hcatalog-core + pom + 3.1.2 + absolute-prefix/hcatalog/core/pom.xml + + jar + 1.6 + + + + + org.apache.hive.hcatalog + hcatalog-pig-adapter + 3.1.2 + absolute-prefix/hcatalog/hcatalog-pig-adapter/target/hive-hcatalog-pig-adapter-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive.hcatalog + hcatalog-pig-adapter + pom + 3.1.2 + absolute-prefix/hcatalog/hcatalog-pig-adapter/pom.xml + + jar + 1.6 + + + + + org.apache.hive.hcatalog + hcatalog + pom + 3.1.2 + absolute-prefix/hcatalog/pom.xml + + jar + 1.6 + + + + + org.apache.hive.hcatalog + hcatalog-server-extensions + 3.1.2 + absolute-prefix/hcatalog/server-extensions/target/hive-hcatalog-server-extensions-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive.hcatalog + hcatalog-server-extensions + pom + 3.1.2 + absolute-prefix/hcatalog/server-extensions/pom.xml + + jar + 1.6 + + + + + org.apache.hive.hcatalog + hive-webhcat-java-client + 3.1.2 + absolute-prefix/hcatalog/webhcat/java-client/target/hive-webhcat-java-client-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive.hcatalog + hive-webhcat-java-client + pom + 3.1.2 + absolute-prefix/hcatalog/webhcat/java-client/pom.xml + + jar + 1.6 + + + + + org.apache.hive.hcatalog + hive-webhcat + 3.1.2 + absolute-prefix/hcatalog/webhcat/svr/target/hive-webhcat-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive.hcatalog + hive-webhcat + pom + 3.1.2 + absolute-prefix/hcatalog/webhcat/svr/pom.xml + + jar + 1.6 + + + + + + org.apache.hive + hive-accumulo-handler + 3.1.2 + absolute-prefix/accumulo-handler/target/hive-accumulo-handler-3.1.2.jar + + jar + 1.6 + + + + + org.apache.hive + hive-hbase-handler + 3.1.2 + absolute-prefix/hbase-handler/target/hive-hbase-handler-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-hplsql + 3.1.2 + absolute-prefix/hplsql/target/hive-hplsql-3.1.2.jar + + jar + 1.6 + + + + + org.apache.hive + hive-llap-client + 3.1.2 + absolute-prefix/llap-client/target/hive-llap-client-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-llap-common + 3.1.2 + absolute-prefix/llap-common/target/hive-llap-common-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-llap-ext-client + 3.1.2 + absolute-prefix/llap-ext-client/target/hive-llap-ext-client-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-llap-server + 3.1.2 + absolute-prefix/llap-server/target/hive-llap-server-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-llap-tez + 3.1.2 + absolute-prefix/llap-tez/target/hive-llap-tez-3.1.2.jar + + jar + 1.6 + + + + + org.apache.hive + hive-service-rpc + 3.1.2 + absolute-prefix/service-rpc/target/hive-service-rpc-3.1.2.jar + + jar + 1.6 + + + + + org.apache.hive.shims + hive-shims-0.23 + 3.1.2 + absolute-prefix/shims/0.23/target/hive-shims-0.23-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive.shims + hive-shims-common + 3.1.2 + absolute-prefix/shims/common/target/hive-shims-common-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive.shims + hive-shims-scheduler + 3.1.2 + absolute-prefix/shims/scheduler/target/hive-shims-scheduler-3.1.2.jar + + jar + 1.6 + + + + + + org.apache.hive + hive-testutils + 3.1.2 + absolute-prefix/testutils/target/hive-testutils-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-classification + 3.1.2 + absolute-prefix/classification/target/hive-classification-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-druid-handler + 3.1.2 + absolute-prefix/druid-handler/target/hive-druid-handler-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-jdbc-handler + 3.1.2 + absolute-prefix/jdbc-handler/target/hive-jdbc-handler-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-kryo-registrator + 3.1.2 + absolute-prefix/kryo-registrator/target/hive-kryo-registrator-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-standalone-metastore + 3.1.2 + absolute-prefix/standalone-metastore/target/hive-standalone-metastore-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-streaming + 3.1.2 + absolute-prefix/streaming/target/hive-streaming-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-upgrade-acid + 3.1.2 + absolute-prefix/upgrade-acid/target/hive-upgrade-acid-3.1.2.jar + + jar + 1.6 + + + + org.apache.hive + hive-vector-code-gen + 3.1.2 + absolute-prefix/vector-code-gen/target/hive-vector-code-gen-3.1.2.jar + + jar + 1.6 + + + +