Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8427a05
Adding rest-notification module from cdh_main to opensource.
UmeshPatil-1 Apr 13, 2026
1d7371f
Resolving build error failure for rest-notification module,Registered…
UmeshPatil-1 Apr 13, 2026
b335913
Adding server-common module remove identical and nearly identical cla…
UmeshPatil-1 Apr 16, 2026
0ccba6d
Resolving error's in webapp for testCompile: unreported javax.servlet…
UmeshPatil-1 Apr 16, 2026
a3030c8
Modifying class syntax to match both webapp and rest-notification web…
UmeshPatil-1 Apr 16, 2026
c3e2bf6
Updating dao class and package to use server-common module for both w…
UmeshPatil-1 Apr 16, 2026
405aed6
Updated Filter classes and module to use server-common module for bot…
UmeshPatil-1 Apr 21, 2026
6270135
Updated method visibility to resolve the testcases and compilation er…
UmeshPatil-1 Apr 23, 2026
7b4964f
Updating security classes and package to use server-common module for…
UmeshPatil-1 Apr 23, 2026
5dbbd0c
Updating class syntax to match earlier coding style.
UmeshPatil-1 Apr 23, 2026
7fcc3f1
Updating listeners class and package to use server-common module for …
UmeshPatil-1 Apr 23, 2026
3762146
Updating classes to use User model class from server-common module.
UmeshPatil-1 Apr 23, 2026
921594b
Updating service classes and package to use server-common module for …
UmeshPatil-1 Apr 25, 2026
549ff3a
Updating class and methods syntax to match earlier coding style in se…
UmeshPatil-1 Apr 25, 2026
3166593
Updating setup class KerberosAwareListener and package to use server-…
UmeshPatil-1 Apr 27, 2026
b93fb63
Updated test class ImportTaskListenerImplTest in webapp module remove…
UmeshPatil-1 Apr 27, 2026
aced7bf
Restoring admin SERVER_START/SERVER_STATE_ACTIVE via WebappAdminAudit…
UmeshPatil-1 Apr 28, 2026
1e2d8bd
Server-Common: align ActiveServerFilter with passive vs migration adm…
UmeshPatil-1 Apr 28, 2026
d3d880d
Resolving Testcase Failure:- Fix UserAuthorityGranter.grant null retu…
UmeshPatil-1 Apr 28, 2026
2fe0e23
Resolving Testcases Failure Fix 503 in SecureEmbeddedServerTest: prof…
UmeshPatil-1 Apr 28, 2026
74711de
Resolving checkstyle error's in webapp module.
UmeshPatil-1 May 4, 2026
f1ce7bd
Updating server-common to atlas-server-common.
UmeshPatil-1 May 7, 2026
31bdd7a
Updating docker changes and related changes in webapp,server-common a…
UmeshPatil-1 Jun 8, 2026
8015307
Resolving review comment's and checkstyle error's
UmeshPatil-1 Jun 17, 2026
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
2 changes: 1 addition & 1 deletion addons/hbase-bridge/src/bin/import-hbase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ then
fi

JAVA_PROPERTIES="$ATLAS_OPTS -Datlas.log.dir=$ATLAS_LOG_DIR -Datlas.log.file=import-hbase.log
-Dlog4j.configuration=atlas-hbase-import-log4j.xml"
-Dlog4j.configurationFile=atlas-hbase-import-logback.xml"

IMPORT_ARGS=
JVM_ARGS=
Expand Down
2 changes: 1 addition & 1 deletion addons/hive-bridge/src/bin/import-hive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ then
fi

JAVA_PROPERTIES="$ATLAS_OPTS -Datlas.log.dir=$ATLAS_LOG_DIR -Datlas.log.file=import-hive.log
-Dlog4j.configuration=atlas-hive-import-log4j.xml"
-Dlog4j.configurationFile=atlas-hive-import-logback.xml"

IMPORT_ARGS=
JVM_ARGS=
Expand Down
2 changes: 1 addition & 1 deletion addons/kafka-bridge/src/bin/import-kafka.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ then
fi

JAVA_PROPERTIES="$ATLAS_OPTS -Datlas.log.dir=$ATLAS_LOG_DIR -Datlas.log.file=import-kafka.log
-Dlog4j.configuration=atlas-kafka-import-log4j.xml"
-Dlog4j.configurationFile=atlas-kafka-import-logback.xml"
shift

while [[ ${1} =~ ^\-D ]]; do
Expand Down
40 changes: 40 additions & 0 deletions dev-support/atlas-docker/Dockerfile.atlas-rest
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


ARG TAG=latest

FROM atlas-base:$TAG

ARG ATLAS_VERSION

COPY ./scripts/atlas-rest.sh ${ATLAS_SCRIPTS}/
COPY ./dist/apache-atlas-${ATLAS_VERSION}-rest-server.tar.gz /home/atlas/dist/

ENV ATLAS_REST_HOME=/opt/rest-notification


RUN tar xfz /home/atlas/dist/apache-atlas-${ATLAS_VERSION}-rest-server.tar.gz --directory=/opt/ && \
ln -s /opt/rest-notification-webapp-${ATLAS_VERSION} ${ATLAS_REST_HOME} && \
rm -f /home/atlas/dist/apache-atlas-${ATLAS_VERSION}-rest-server.tar.gz && \
mkdir -p /var/run/atlas/rest-notification /var/log/atlas/rest-notification && \
rm -rf ${ATLAS_REST_HOME}/logs && \
ln -s /var/log/atlas/rest-notification ${ATLAS_REST_HOME}/logs && \
chown -R atlas:atlas ${ATLAS_REST_HOME}/ /var/run/atlas/rest-notification /var/log/atlas/rest-notification

EXPOSE 41000

ENTRYPOINT [ "/home/atlas/scripts/atlas-rest.sh" ]
29 changes: 29 additions & 0 deletions dev-support/atlas-docker/docker-compose.atlas-rest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
services:
atlas-rest:
build:
context: .
dockerfile: Dockerfile.atlas-rest
args:
- ATLAS_VERSION=${ATLAS_VERSION}
image: atlas-rest:latest
container_name: atlas-rest
hostname: atlas-rest.example.com
stdin_open: true
tty: true
networks:
- atlas
ports:
- "41000:41000"
depends_on:
atlas-kafka:
condition: service_started
atlas-zk:
condition: service_started
environment:
- ATLAS_VERSION
command:
- /home/atlas/scripts/atlas-rest.sh

networks:
atlas:
name: atlasnw
4 changes: 3 additions & 1 deletion dev-support/atlas-docker/scripts/atlas-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ for f in \
"distro/target/apache-atlas-${ATLAS_VERSION}-server.tar.gz" \
"distro/target/apache-atlas-${ATLAS_VERSION}-hive-hook.tar.gz" \
"distro/target/apache-atlas-${ATLAS_VERSION}-hbase-hook.tar.gz" \
"distro/target/apache-atlas-${ATLAS_VERSION}-kafka-hook.tar.gz"
"distro/target/apache-atlas-${ATLAS_VERSION}-kafka-hook.tar.gz" \
"distro/target/apache-atlas-${ATLAS_VERSION}-rest-server.tar.gz"

do
if [ -f "${f}" ]; then
mv -f "${f}" /home/atlas/dist/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ atlas.rest.address=http://atlas.example.com:21000

atlas.kafka.zookeeper.connect=atlas-zk.example.com:2181
atlas.kafka.bootstrap.servers=atlas-kafka.example.com:9092

####### Atlas REST Notification ###########

#atlas.hook.rest.notification.address=http://atlas-rest.example.com:41000/rest
#atlas.hook.rest.notification.enabled=true
#atlas.rest.basic.auth.username=admin
#atlas.rest.basic.auth.password=atlasR0cks!
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@
#


atlas.rest.address=http://atlas.example.com:21000
#atlas.rest.address=http://atlas.example.com:21000

atlas.kafka.zookeeper.connect=atlas-zk.example.com:2181
atlas.kafka.bootstrap.servers=atlas-kafka.example.com:9092


####### Atlas REST Notification ###########

#atlas.hook.rest.notification.address=http://atlas-rest.example.com:41000/rest
#atlas.hook.rest.notification.enabled=true
#atlas.rest.basic.auth.username=admin
#atlas.rest.basic.auth.password=atlasR0cks!
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@
#


atlas.rest.address=http://atlas.example.com:21000
#atlas.rest.address=http://atlas.example.com:21000

atlas.kafka.zookeeper.connect=atlas-zk.example.com:2181
atlas.kafka.bootstrap.servers=atlas-kafka.example.com:9092


####### Atlas REST Notification ###########

#atlas.hook.rest.notification.address=http://atlas-rest.example.com:41000/rest
#atlas.hook.rest.notification.enabled=true
#atlas.rest.basic.auth.username=admin
#atlas.rest.basic.auth.password=atlasR0cks!
48 changes: 48 additions & 0 deletions dev-support/atlas-docker/scripts/atlas-rest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


set -x

if [ ! -e ${ATLAS_REST_HOME}/.setupDone ]
then
SETUP_ATLAS_REST=true
else
SETUP_ATLAS_REST=false
fi

if [ "${SETUP_ATLAS_REST}" == "true" ]
then
encryptedPwd=$(${ATLAS_REST_HOME}/bin/rest_server_cputil.py -g -u admin -p atlasR0cks! -s)
echo "admin=ADMIN::${encryptedPwd}" > ${ATLAS_REST_HOME}/conf/users-credentials.properties
sed -i "s/atlas.notification.embedded=.*$/atlas.notification.embedded=false/" /opt/rest-notification/conf/atlas-application.properties
sed -i "s/atlas.kafka.zookeeper.connect=.*$/atlas.kafka.zookeeper.connect=atlas-zk.example.com:2181/" /opt/rest-notification/conf/atlas-application.properties
sed -i "s/atlas.kafka.bootstrap.servers=.*$/atlas.kafka.bootstrap.servers=atlas-kafka.example.com:9092/" /opt/rest-notification/conf/atlas-application.properties

chown -R atlas:atlas ${ATLAS_REST_HOME}/

touch ${ATLAS_REST_HOME}/.setupDone
fi



su -c "cd ${ATLAS_REST_HOME}/bin && ./rest_start.py" atlas
ATLAS_REST_PID=`ps -ef | grep -v grep | grep -i "org.apache.atlas.notification.rest.RestNotificationMain" | awk '{print $2}'`

# prevent the container from exiting
tail --pid=${ATLAS_REST_PID} -f /dev/null
1 change: 1 addition & 0 deletions distro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ atlas.graph.storage.hbase.regions-per-server=1
<descriptor>src/main/assemblies/atlas-kafka-hook-package.xml</descriptor>
<descriptor>src/main/assemblies/atlas-couchbase-hook-package.xml</descriptor>
<descriptor>src/main/assemblies/atlas-server-package.xml</descriptor>
<descriptor>src/main/assemblies/rest-server-package.xml</descriptor>
<descriptor>src/main/assemblies/standalone-package.xml</descriptor>
<descriptor>src/main/assemblies/src-package.xml</descriptor>
<descriptor>src/main/assemblies/atlas-repair-index-package.xml</descriptor>
Expand Down
Loading