Skip to content

Commit

Permalink
feat(ranger_solr): add ranger_solr_log_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
PACordonnier authored and rpignolet committed Sep 6, 2024
1 parent 3f7ffab commit 5f672b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ appenders = {{ ranger_root_logger }}
# rolling file appender
appender.RFA.type = RollingRandomAccessFile
appender.RFA.name = RFA
appender.RFA.fileName = {{ ranger_log_dir }}/{{ ranger_solr_log_file }}
appender.RFA.filePattern = {{ ranger_log_dir }}/{{ ranger_solr_log_file }}.%i
appender.RFA.fileName = {{ ranger_solr_log_dir }}/{{ ranger_solr_log_file }}
appender.RFA.filePattern = {{ ranger_solr_log_dir }}/{{ ranger_solr_log_file }}.%i
appender.RFA.layout.type = PatternLayout
appender.RFA.layout.pattern = {{ ranger_log_layout_pattern }}
appender.RFA.policies.type = Policies
Expand All @@ -37,8 +37,8 @@ appender.RFA.strategy.max = {{ ranger_log_rfa_maxbackupindex }}
# daily rolling file appender
appender.DRFA.type = RollingRandomAccessFile
appender.DRFA.name = DRFA
appender.DRFA.fileName = {{ ranger_log_dir }}/{{ ranger_solr_log_file }}
appender.DRFA.filePattern = {{ ranger_log_dir }}/{{ ranger_solr_log_file }}.{{ ranger_solr_log_drfa_date_pattern }}
appender.DRFA.fileName = {{ ranger_solr_log_dir }}/{{ ranger_solr_log_file }}
appender.DRFA.filePattern = {{ ranger_solr_log_dir }}/{{ ranger_solr_log_file }}.{{ ranger_solr_log_drfa_date_pattern }}
appender.DRFA.layout.type = PatternLayout
appender.DRFA.layout.pattern = {{ ranger_log_layout_pattern }}
appender.DRFA.policies.type = Policies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Wants=network-online.target
User={{ solr_user }}
Group={{ hadoop_group }}
Environment="SOLR_PID_DIR={{ solr_pid_dir }}"
Environment="SOLR_LOGS_DIR={{ ranger_log_dir }}"
Environment="SOLR_LOGS_DIR={{ ranger_solr_log_dir }}"
Environment="LOG4J_PROPS={{ solr_conf_dir }}/log4j2.properties"
Environment="SOLR_HEAP={{ ranger_solr_heapsize }}"
Environment="SOLR_DATA_HOME={{ ranger_solr_datadir }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/ranger/solr/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

- name: Create log directory
ansible.builtin.file:
path: "{{ ranger_log_dir }}"
path: "{{ ranger_solr_log_dir }}"
state: directory
group: "{{ hadoop_group }}"
owner: root
Expand Down
1 change: 1 addition & 0 deletions tdp_vars_defaults/tdp-cluster/tdp-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ knox_ranger_audit_file: "knox-rangeraudit_{{ ansible_fqdn }}.log"
ranger_log_dir: /var/log/ranger
ranger_admin_log_file: "ranger-admin_{{ ansible_fqdn }}.log"
ranger_usersync_log_file: "ranger-usersync_{{ ansible_fqdn }}.log"
ranger_solr_log_dir: /var/log/ranger_solr
ranger_solr_log_file: "ranger-solr_{{ ansible_fqdn }}.log"

ranger_kms_log_dir: /var/log/kms
Expand Down

0 comments on commit 5f672b7

Please sign in to comment.