Skip to content

Commit fc89780

Browse files
RakeshGuptaDevpradeepagrawal8184
authored andcommitted
1 parent 954d36e commit fc89780

18 files changed

Lines changed: 184 additions & 67 deletions

dev-support/ranger-docker/Dockerfile.ranger-solr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ARG SOLR_PLUGIN_VERSION
2424

2525
USER root
2626

27-
RUN apt update && DEBIAN_FRONTEND="noninteractive" apt-get install -y krb5-user
27+
RUN apt update && DEBIAN_FRONTEND="noninteractive" apt-get install -y vim krb5-user
2828

2929
RUN mkdir -p /opt/solr/server/solr/configsets/ranger_audits/conf /home/ranger/dist /opt/ranger /home/ranger/scripts
3030
RUN chown -R solr:solr /opt/solr/server/solr/configsets/ranger_audits/

dev-support/ranger-docker/scripts/hadoop/ranger-hdfs-plugin-install.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
POLICY_MGR_URL=http://ranger:6080
16+
POLICY_MGR_URL=http://ranger.rangernw:6080
1717
REPOSITORY_NAME=dev_hdfs
1818
COMPONENT_INSTALL_DIR_NAME=/opt/hadoop
1919

@@ -27,7 +27,7 @@ XAAUDIT.AUDITSERVER.FILE_SPOOL_DIR=/var/log/hadoop/hdfs/audit/audit-server/spool
2727
XAAUDIT.SOLR.IS_ENABLED=false
2828
XAAUDIT.SOLR.MAX_QUEUE_SIZE=1
2929
XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS=1000
30-
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr:8983/solr/ranger_audits
30+
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
3131

3232
# Following properties are needed to get past installation script! Please don't remove
3333
XAAUDIT.HDFS.IS_ENABLED=false
@@ -44,7 +44,7 @@ XAAUDIT.HDFS.LOCAL_BUFFER_ROLLOVER_INTERVAL_SECONDS=600
4444
XAAUDIT.HDFS.LOCAL_ARCHIVE_MAX_FILE_COUNT=10
4545

4646
XAAUDIT.SOLR.ENABLE=false
47-
XAAUDIT.SOLR.URL=http://ranger-solr:8983/solr/ranger_audits
47+
XAAUDIT.SOLR.URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
4848
XAAUDIT.SOLR.USER=NONE
4949
XAAUDIT.SOLR.PASSWORD=NONE
5050
XAAUDIT.SOLR.ZOOKEEPER=NONE

dev-support/ranger-docker/scripts/hadoop/ranger-yarn-plugin-install.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
POLICY_MGR_URL=http://ranger:6080
16+
POLICY_MGR_URL=http://ranger.rangernw:6080
1717
REPOSITORY_NAME=dev_yarn
1818
COMPONENT_INSTALL_DIR_NAME=/opt/hadoop
1919

@@ -27,7 +27,7 @@ XAAUDIT.AUDITSERVER.FILE_SPOOL_DIR=/var/log/hadoop/yarn/audit/audit-server/spool
2727
XAAUDIT.SOLR.IS_ENABLED=false
2828
XAAUDIT.SOLR.MAX_QUEUE_SIZE=1
2929
XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS=1000
30-
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr:8983/solr/ranger_audits
30+
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
3131

3232
# Following properties are needed to get past installation script! Please don't remove
3333
XAAUDIT.HDFS.IS_ENABLED=false
@@ -44,7 +44,7 @@ XAAUDIT.HDFS.LOCAL_BUFFER_ROLLOVER_INTERVAL_SECONDS=600
4444
XAAUDIT.HDFS.LOCAL_ARCHIVE_MAX_FILE_COUNT=10
4545

4646
XAAUDIT.SOLR.ENABLE=false
47-
XAAUDIT.SOLR.URL=http://ranger-solr:8983/solr/ranger_audits
47+
XAAUDIT.SOLR.URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
4848
XAAUDIT.SOLR.USER=NONE
4949
XAAUDIT.SOLR.PASSWORD=NONE
5050
XAAUDIT.SOLR.ZOOKEEPER=NONE

dev-support/ranger-docker/scripts/hbase/ranger-hbase-plugin-install.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
POLICY_MGR_URL=http://ranger:6080
16+
POLICY_MGR_URL=http://ranger.rangernw:6080
1717
REPOSITORY_NAME=dev_hbase
1818
COMPONENT_INSTALL_DIR_NAME=/opt/hbase
1919

@@ -30,7 +30,7 @@ UPDATE_XAPOLICIES_ON_GRANT_REVOKE=true
3030
XAAUDIT.SOLR.IS_ENABLED=false
3131
XAAUDIT.SOLR.MAX_QUEUE_SIZE=1
3232
XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS=1000
33-
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr:8983/solr/ranger_audits
33+
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
3434

3535
# Following properties are needed to get past installation script! Please don't remove
3636
XAAUDIT.HDFS.IS_ENABLED=false
@@ -47,7 +47,7 @@ XAAUDIT.HDFS.LOCAL_BUFFER_ROLLOVER_INTERVAL_SECONDS=600
4747
XAAUDIT.HDFS.LOCAL_ARCHIVE_MAX_FILE_COUNT=10
4848

4949
XAAUDIT.SOLR.ENABLE=true
50-
XAAUDIT.SOLR.URL=http://ranger-solr:8983/solr/ranger_audits
50+
XAAUDIT.SOLR.URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
5151
XAAUDIT.SOLR.USER=NONE
5252
XAAUDIT.SOLR.PASSWORD=NONE
5353
XAAUDIT.SOLR.ZOOKEEPER=NONE

dev-support/ranger-docker/scripts/hive/ranger-hive-plugin-install.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
POLICY_MGR_URL=http://ranger:6080
16+
POLICY_MGR_URL=http://ranger.rangernw:6080
1717
REPOSITORY_NAME=dev_hive
1818
COMPONENT_INSTALL_DIR_NAME=/opt/hive
1919
UPDATE_XAPOLICIES_ON_GRANT_REVOKE=true
@@ -28,7 +28,7 @@ XAAUDIT.AUDITSERVER.FILE_SPOOL_DIR=/var/log/hive/audit/audit-server/spool
2828
XAAUDIT.SOLR.IS_ENABLED=false
2929
XAAUDIT.SOLR.MAX_QUEUE_SIZE=1
3030
XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS=1000
31-
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr:8983/solr/ranger_audits
31+
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
3232

3333
# Following properties are needed to get past installation script! Please don't remove
3434
XAAUDIT.HDFS.IS_ENABLED=false
@@ -45,7 +45,7 @@ XAAUDIT.HDFS.LOCAL_BUFFER_ROLLOVER_INTERVAL_SECONDS=600
4545
XAAUDIT.HDFS.LOCAL_ARCHIVE_MAX_FILE_COUNT=10
4646

4747
XAAUDIT.SOLR.ENABLE=false
48-
XAAUDIT.SOLR.URL=http://ranger-solr:8983/solr/ranger_audits
48+
XAAUDIT.SOLR.URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
4949
XAAUDIT.SOLR.USER=NONE
5050
XAAUDIT.SOLR.PASSWORD=NONE
5151
XAAUDIT.SOLR.ZOOKEEPER=NONE

dev-support/ranger-docker/scripts/hive/ranger-hive-setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
echo "export JAVA_HOME=${JAVA_HOME}" >> ${HADOOP_HOME}/etc/hadoop/hadoop-env.sh
2020

21+
echo "export HADOOP_OPTS=\"${HADOOP_OPTS} --add-opens=java.base/java.nio=ALL-UNNAMED \"" >> ${HADOOP_HOME}/etc/hadoop/hadoop-env.sh
22+
2123
cat <<EOF > /etc/ssh/ssh_config
2224
Host *
2325
StrictHostKeyChecking no

dev-support/ranger-docker/scripts/kms/ranger-kms-install-mysql.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ cred_keystore_filename=
133133
# ------- UNIX User CONFIG - END ----------------
134134
#
135135

136-
POLICY_MGR_URL=http://ranger:6080
136+
POLICY_MGR_URL=http://ranger.rangernw:6080
137137
REPOSITORY_NAME=dev_kms
138138

139139
# AUDIT configuration with V3 properties

dev-support/ranger-docker/scripts/kms/ranger-kms-install-oracle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ cred_keystore_filename=
133133
# ------- UNIX User CONFIG - END ----------------
134134
#
135135

136-
POLICY_MGR_URL=http://ranger:6080
136+
POLICY_MGR_URL=http://ranger.rangernw:6080
137137
REPOSITORY_NAME=dev_kms
138138

139139
# AUDIT configuration with V3 properties

dev-support/ranger-docker/scripts/kms/ranger-kms-install-sqlserver.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ unix_group=ranger
132132
# ------- UNIX User CONFIG - END ----------------
133133
#
134134

135-
POLICY_MGR_URL=http://ranger:6080
135+
POLICY_MGR_URL=http://ranger.rangernw:6080
136136
REPOSITORY_NAME=dev_kms
137137

138138
# AUDIT configuration with V3 properties

dev-support/ranger-docker/scripts/solr/ranger-solr-plugin-install.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
POLICY_MGR_URL=http://ranger:6080
16+
POLICY_MGR_URL=http://ranger.rangernw:6080
1717
REPOSITORY_NAME=dev_solr
1818
COMPONENT_INSTALL_DIR_NAME=/opt/solr/server
1919
UGI_INITIALIZE=true
@@ -23,7 +23,7 @@ UGI_JAAS_APPCONFIG=Client
2323
XAAUDIT.SOLR.IS_ENABLED=true
2424
XAAUDIT.SOLR.MAX_QUEUE_SIZE=1
2525
XAAUDIT.SOLR.MAX_FLUSH_INTERVAL_MS=1000
26-
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr:8983/solr/ranger_audits
26+
XAAUDIT.SOLR.SOLR_URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
2727

2828
# Following properties are needed to get past installation script! Please don't remove
2929
XAAUDIT.AUDITSERVER.ENABLE=true
@@ -44,7 +44,7 @@ XAAUDIT.HDFS.LOCAL_BUFFER_ROLLOVER_INTERVAL_SECONDS=600
4444
XAAUDIT.HDFS.LOCAL_ARCHIVE_MAX_FILE_COUNT=10
4545

4646
XAAUDIT.SOLR.ENABLE=false
47-
XAAUDIT.SOLR.URL=http://ranger-solr:8983/solr/ranger_audits
47+
XAAUDIT.SOLR.URL=http://ranger-solr.rangernw:8983/solr/ranger_audits
4848
XAAUDIT.SOLR.USER=NONE
4949
XAAUDIT.SOLR.PASSWORD=NONE
5050
XAAUDIT.SOLR.ZOOKEEPER=NONE

0 commit comments

Comments
 (0)