Download testbed/dpkp__kafka-python/travis_java_install.sh from hc99/FEA-Bench: direct link, hf CLI and curl.
- Browser
- Download file 797 Bytes
-
https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/dpkp__kafka-python/travis_java_install.sh
- Command line
-
hf download hf://datasets/hc99/FEA-Bench/testbed/dpkp__kafka-python/travis_java_install.sh
-
curl -L -o travis_java_install.sh https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/dpkp__kafka-python/travis_java_install.sh
797 Bytes
| # borrowed from: https://github.com/mansenfranzen/pywrangler/blob/master/tests/travis_java_install.sh | |
| # Kafka requires Java 8 in order to work properly. However, TravisCI's Ubuntu | |
| # 16.04 ships with Java 11 and Java can't be set with `jdk` when python is | |
| # selected as language. Ubuntu 14.04 does not work due to missing python 3.7 | |
| # support on TravisCI which does have Java 8 as default. | |
| # show current JAVA_HOME and java version | |
| echo "Current JAVA_HOME: $JAVA_HOME" | |
| echo "Current java -version:" | |
| which java | |
| java -version | |
| echo "Updating JAVA_HOME" | |
| # change JAVA_HOME to Java 8 | |
| export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 | |
| echo "Updating PATH" | |
| export PATH=${PATH/\/usr\/local\/lib\/jvm\/openjdk11\/bin/$JAVA_HOME\/bin} | |
| echo "New java -version" | |
| which java | |
| java -version | |