Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependency conflict between tez and vineyard. #1701

Merged
merged 2 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions java/hive/docker/dependency/images/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/hadoop:v1

# FROM registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/hadoop:v1
FROM apache/hadoop:3.3.5

RUN mkdir -p /opt/apache/
RUN mv /opt/hadoop/ /opt/apache/
ENV HADOOP_HOME=/opt/apache/hadoop
ENV HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoop
ENV HIVE_HOME=/opt/apache/hive
COPY ./vineyard-hive-0.1-SNAPSHOT.jar ${HADOOP_HOME}/share/hadoop/common/

# prepare hdoop config
Expand All @@ -19,14 +25,16 @@
COPY hive-config/ /hive-config
COPY hive-config-distributed/ /hive-config-distributed

ENV PATH=${HADOOP_HOME}/bin:${HADOOP_HOME}/sbin:${HIVE_HOME}/bin:${PATH}

COPY bootstrap.sh /opt/apache/
COPY mysql-connector-java-5.1.49/mysql-connector-java-5.1.49-bin.jar ${HIVE_HOME}/lib/

RUN sudo yum -y install unzip
RUN wget http://www.vuln.cn/wp-content/uploads/2019/08/libstdc.so_.6.0.26.zip -q && unzip libstdc.so_.6.0.26.zip
RUN cp libstdc++.so.6.0.26 /usr/lib64
RUN rm /usr/lib64/libstdc++.so.6
RUN ln -s /usr/lib64/libstdc++.so.6.0.26 /usr/lib64/libstdc++.so.6
RUN sudo cp libstdc++.so.6.0.26 /usr/lib64

Check failure on line 35 in java/hive/docker/dependency/images/Dockerfile

View check run for this annotation

codefactor.io / CodeFactor

java/hive/docker/dependency/images/Dockerfile#L35

Do not use sudo as it leads to unpredictable behavior. Use a tool like gosu to enforce root (DL3004)
RUN sudo rm /usr/lib64/libstdc++.so.6

Check failure on line 36 in java/hive/docker/dependency/images/Dockerfile

View check run for this annotation

codefactor.io / CodeFactor

java/hive/docker/dependency/images/Dockerfile#L36

Do not use sudo as it leads to unpredictable behavior. Use a tool like gosu to enforce root (DL3004)
RUN sudo ln -s /usr/lib64/libstdc++.so.6.0.26 /usr/lib64/libstdc++.so.6

Check failure on line 37 in java/hive/docker/dependency/images/Dockerfile

View check run for this annotation

codefactor.io / CodeFactor

java/hive/docker/dependency/images/Dockerfile#L37

Do not use sudo as it leads to unpredictable behavior. Use a tool like gosu to enforce root (DL3004)

RUN sudo yum -y install vim

Expand Down
12 changes: 6 additions & 6 deletions java/hive/docker/dependency/images/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,41 @@ start_hdfs_namenode() {
fi
${HADOOP_HOME}/bin/hdfs --loglevel INFO namenode

tail -f ${HADOOP_HOME}/logs/*namenode*.log
tail -f /var/log/hadoop/*namenode*.log
}

start_hdfs_datanode() {
wait_for $1 $2

${HADOOP_HOME}/bin/hdfs --loglevel INFO --daemon start datanode
tail -f ${HADOOP_HOME}/logs/*datanode*.log
tail -f /var/log/hadoop/*datanode*.log
}

start_yarn_resourcemanager() {
${HADOOP_HOME}/bin/yarn --loglevel INFO --daemon start resourcemanager
tail -f ${HADOOP_HOME}/logs/*resourcemanager*.log
tail -f /var/log/hadoop/*resourcemanager*.log
}

start_yarn_nodemanager() {
wait_for $1 $2

${HADOOP_HOME}/bin/yarn --loglevel INFO --daemon start nodemanager
tail -f ${HADOOP_HOME}/logs/*nodemanager*.log
tail -f /var/log/hadoop/*nodemanager*.log
}

start_yarn_proxyserver() {
wait_for $1 $2

${HADOOP_HOME}/bin/yarn --loglevel INFO --daemon start proxyserver
tail -f ${HADOOP_HOME}/logs/*proxyserver*.log
tail -f /var/log/hadoop/*proxyserver*.log
}

start_mr_historyserver() {

wait_for $1 $2

${HADOOP_HOME}/bin/mapred --loglevel INFO --daemon start historyserver
tail -f ${HADOOP_HOME}/logs/*historyserver*.log
tail -f /var/log/hadoop/*historyserver*.log
}

start_hive_metastore() {
Expand Down
Loading
Loading