Skip to content

Commit

Permalink
Merge pull request #2695 from atlanhq/fix-cve-ms
Browse files Browse the repository at this point in the history
Fix CVE Metastore
  • Loading branch information
sumandas0 authored Dec 21, 2023
2 parents 36a3972 + 65b960a commit 307adb9
Show file tree
Hide file tree
Showing 66 changed files with 3 additions and 4,470 deletions.
13 changes: 1 addition & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ RUN apt-get update \
netcat \
curl \
&& cd / \
&& mkdir /opt/ranger-atlas-plugin \
&& export MAVEN_OPTS="-Xms2g -Xmx2g" \
&& export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" \
&& tar -xzvf /apache-atlas-3.0.0-SNAPSHOT-server.tar.gz -C /opt \
Expand All @@ -57,22 +56,12 @@ COPY atlas-hub/repair_index.py /opt/apache-atlas/bin/
RUN chmod +x /opt/apache-atlas/bin/repair_index.py

COPY atlas-hub/atlas_start.py.patch atlas-hub/atlas_config.py.patch /opt/apache-atlas/bin/
COPY atlas-hub/pre-conf/ranger/lib/ /opt/apache-atlas/libext/
COPY atlas-hub/pre-conf/ranger/install/conf.templates/enable/ /opt/apache-atlas/conf/
COPY atlas-hub/pre-conf/atlas-log4j.xml /opt/apache-atlas/conf/
COPY atlas-hub/pre-conf/atlas-log4j2.xml /opt/apache-atlas/conf/
COPY atlas-hub/pre-conf/ranger/ /opt/ranger-atlas-plugin/
COPY atlas-hub/env_change.sh /
COPY atlas-hub/pre-conf/atlas-auth/ /opt/apache-atlas/conf/

RUN curl https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/1.6.2/jolokia-jvm-1.6.2-agent.jar -o /opt/apache-atlas/libext/jolokia-jvm-agent.jar

RUN cd /opt/apache-atlas/bin \
&& sed "s~ATLAS_INSTALL_DIR~/opt/apache-atlas~g" /opt/ranger-atlas-plugin/install.properties > /tmp/install.properties \
&& cp /tmp/install.properties /opt/ranger-atlas-plugin/install.properties \
&& chmod +x /env_change.sh
# && patch -b -f < atlas_start.py.patch \
# && patch -b -f < atlas_config.py.patch \

RUN cd /opt/apache-atlas/bin \
&& ./atlas_start.py -setup || true

Expand Down
6 changes: 0 additions & 6 deletions addons/hbase-bridge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-auth</artifactId>
<version>${hadoop.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.atlas</groupId>
<artifactId>atlas-client-v2</artifactId>
Expand Down
6 changes: 0 additions & 6 deletions addons/kafka-bridge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-auth</artifactId>
<version>${hadoop.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>

<profiles>
Expand Down
24 changes: 0 additions & 24 deletions atlas-hub/env_change.sh

This file was deleted.

Loading

0 comments on commit 307adb9

Please sign in to comment.