Skip to content

Commit

Permalink
[ZEPPELIN-5779] Remove pig interpreter (apache#4424)
Browse files Browse the repository at this point in the history
* [ZEPPELIN-5779] Remove pig interpreter

* Automatically updated after build
  • Loading branch information
HYEEWON authored Jul 26, 2022
1 parent 56312cb commit 0a115e1
Show file tree
Hide file tree
Showing 29 changed files with 6 additions and 2,020 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
interpreter-test-non-core:
runs-on: ubuntu-20.04
env:
INTERPRETERS: 'beam,hbase,pig,jdbc,file,flink-cmd,ignite,cassandra,elasticsearch,bigquery,alluxio,livy,groovy,sap,java,geode,neo4j,submarine,sparql,mongodb,influxdb,ksql'
INTERPRETERS: 'beam,hbase,jdbc,file,flink-cmd,ignite,cassandra,elasticsearch,bigquery,alluxio,livy,groovy,sap,java,geode,neo4j,submarine,sparql,mongodb,influxdb,ksql'
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
SPARK_PRINT_LAUNCH_COMMAND: "true"
SPARK_LOCAL_IP: 127.0.0.1
ZEPPELIN_LOCAL_IP: 127.0.0.1
INTERPRETERS: '!beam,!hbase,!pig,!jdbc,!file,!flink,!ignite,!cassandra,!elasticsearch,!bigquery,!alluxio,!livy,!groovy,!sap,!java,!geode,!neo4j,!submarine,!sparql,!mongodb'
INTERPRETERS: '!beam,!hbase,!jdbc,!file,!flink,!ignite,!cassandra,!elasticsearch,!bigquery,!alluxio,!livy,!groovy,!sap,!java,!geode,!neo4j,!submarine,!sparql,!mongodb'

jobs:
run-e2e-tests-in-zeppelin-web:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN echo "unsafe-perm=true" > ~/.npmrc && \
echo '{ "allow_root": true }' > ~/.bowerrc && \
./mvnw -B package -DskipTests -Pbuild-distr -Pspark-3.2 -Pinclude-hadoop -Phadoop3 -Pspark-scala-2.12 -Pweb-angular && \
# Example with doesn't compile all interpreters
# ./mvnw -B package -DskipTests -Pbuild-distr -Pspark-3.2 -Pinclude-hadoop -Phadoop3 -Pspark-scala-2.12 -Pweb-angular -pl '!groovy,!submarine,!livy,!hbase,!pig,!file,!flink,!ignite' && \
# ./mvnw -B package -DskipTests -Pbuild-distr -Pspark-3.2 -Pinclude-hadoop -Phadoop3 -Pspark-scala-2.12 -Pweb-angular -pl '!groovy,!submarine,!livy,!hbase,!file,!flink,!ignite' && \
mv /workspace/zeppelin/zeppelin-distribution/target/zeppelin-*/zeppelin-* /opt/zeppelin/ && \
# Removing stuff saves time, because docker creates a temporary layer
rm -rf ~/.m2 && \
Expand Down
21 changes: 0 additions & 21 deletions bin/interpreter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,28 +205,7 @@ elif [[ "${INTERPRETER_ID}" == "hbase" ]]; then
else
echo "HBASE_HOME and HBASE_CONF_DIR are not set, configuration might not be loaded"
fi
elif [[ "${INTERPRETER_ID}" == "pig" ]]; then
# autodetect HADOOP_CONF_HOME by heuristic
if [[ -n "${HADOOP_HOME}" ]] && [[ -z "${HADOOP_CONF_DIR}" ]]; then
if [[ -d "${HADOOP_HOME}/etc/hadoop" ]]; then
export HADOOP_CONF_DIR="${HADOOP_HOME}/etc/hadoop"
elif [[ -d "/etc/hadoop/conf" ]]; then
export HADOOP_CONF_DIR="/etc/hadoop/conf"
fi
fi

if [[ -n "${HADOOP_CONF_DIR}" ]] && [[ -d "${HADOOP_CONF_DIR}" ]]; then
ZEPPELIN_INTP_CLASSPATH+=":${HADOOP_CONF_DIR}"
fi

# autodetect TEZ_CONF_DIR
if [[ -n "${TEZ_CONF_DIR}" ]]; then
ZEPPELIN_INTP_CLASSPATH+=":${TEZ_CONF_DIR}"
elif [[ -d "/etc/tez/conf" ]]; then
ZEPPELIN_INTP_CLASSPATH+=":/etc/tez/conf"
else
echo "TEZ_CONF_DIR is not set, configuration might not be loaded"
fi
elif [[ "${INTERPRETER_ID}" == "flink" ]]; then
addEachJarInDirRecursiveForIntp "${FLINK_HOME}/lib"

Expand Down
1 change: 0 additions & 1 deletion conf/interpreter-list
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ kotlin org.apache.zeppelin:zeppelin-kotlin:0.10.0 Kotlin
livy org.apache.zeppelin:zeppelin-livy:0.10.0 Livy interpreter
md org.apache.zeppelin:zeppelin-markdown:0.10.0 Markdown support
neo4j org.apache.zeppelin:zeppelin-neo4j:0.10.0 Neo4j interpreter
pig org.apache.zeppelin:zeppelin-pig:0.10.0 Pig interpreter
python org.apache.zeppelin:zeppelin-python:0.10.0 Python interpreter
sap org.apache.zeppelin:zeppelin-sap:0.10.0 SAP Support
shell org.apache.zeppelin:zeppelin-shell:0.10.0 Shell command
Expand Down
2 changes: 1 addition & 1 deletion dev/create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function make_binary_release() {
git_clone
make_source_package

make_binary_release netinst "-Pweb-angular -Phadoop-2.6 -pl !beam,!hbase,!pig,!jdbc,!file,!flink,!ignite,!cassandra,!elasticsearch,!bigquery,!alluxio,!livy,!groovy,!sap,!java,!geode,!neo4j,!submarine,!sparql,!mongodb,!ksql -am"
make_binary_release netinst "-Pweb-angular -Phadoop-2.6 -pl !beam,!hbase,!jdbc,!file,!flink,!ignite,!cassandra,!elasticsearch,!bigquery,!alluxio,!livy,!groovy,!sap,!java,!geode,!neo4j,!submarine,!sparql,!mongodb,!ksql -am"
make_binary_release all "-Pweb-angular -Phadoop-2.6"

# remove non release files and dirs
Expand Down
1 change: 0 additions & 1 deletion docs/_includes/themes/zeppelin/_navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@
<li><a href="{{BASE_PATH}}/interpreter/markdown.html">Markdown</a></li>
<li><a href="{{BASE_PATH}}/interpreter/mongodb.html">MongoDB</a></li>
<li><a href="{{BASE_PATH}}/interpreter/neo4j.html">Neo4j</a></li>
<li><a href="{{BASE_PATH}}/interpreter/pig.html">Pig</a></li>
<li><a href="{{BASE_PATH}}/interpreter/postgresql.html">Postgresql, HAWQ</a></li>
<li><a href="{{BASE_PATH}}/interpreter/sap.html">SAP</a></li>
<li><a href="{{BASE_PATH}}/interpreter/shell.html">Shell</a></li>
Expand Down
Binary file not shown.
1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ limitations under the License.
* [Markdown](./interpreter/markdown.html)
* [MongoDB](./interpreter/mongodb.html)
* [Neo4j](./interpreter/neo4j.html)
* [Pig](./interpreter/pig.html)
* [Postgresql, HAWQ](./interpreter/postgresql.html)
* [Python](./interpreter/python.html)
* [R](./interpreter/r.html)
Expand Down
190 changes: 0 additions & 190 deletions docs/interpreter/pig.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/usage/interpreter/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,6 @@ You can also find the below community managed interpreter list in `conf/interpre
<td>org.apache.zeppelin:zeppelin-neo4j:0.10.0</td>
<td>Neo4j interpreter</td>
</tr>
<tr>
<td>pig</td>
<td>org.apache.zeppelin:zeppelin-pig:0.10.0</td>
<td>Pig interpreter</td>
</tr>
<tr>
<td>python</td>
<td>org.apache.zeppelin:zeppelin-python:0.10.0</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/other_features/zeppelin_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ dynamic-forms and object-interpolation as described below.

| Interpreters that use Embedded Commands |
|-------------------------------------------------------------------|
|spark.sql (\*), bigquery, cassandra, elasticsearch, file, hbase, ignite, jdbc (\*), livy, markdown, neo4j, pig, python, shell (\*), zengine |
|spark.sql (\*), bigquery, cassandra, elasticsearch, file, hbase, ignite, jdbc (\*), livy, markdown, neo4j, python, shell (\*), zengine |

Dynamic forms are available in all of the interpreters in the table above,
but object interpolation is only available in a small, but growing, list of interpreters
Expand Down
Loading

0 comments on commit 0a115e1

Please sign in to comment.