Custom CM server defaults.
This commit is contained in:
parent
5e85b8fc17
commit
a3ff075ee9
|
@ -16,6 +16,11 @@ cdh_oozie_ext_libs_url: 'https://archive.cloudera.com/gplextras/misc/ext-2.2.zip
|
|||
|
||||
cdh_impala_haproxy: False
|
||||
|
||||
cdh_cmf_server_args: ''
|
||||
cdh_cmf_heap: '4G'
|
||||
cdh_cmf_java_opts: '-Xmx{{ cdh_cmf_heap }} -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp'
|
||||
cdh_cmf_jdbc_pg_driver: '/srv/postgres.jar'
|
||||
|
||||
cdh_use_separate_postgres_db: True
|
||||
cdh_postgres_db_host: localhost
|
||||
cdh_postgres_db_name: cdh
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
---
|
||||
- name: Restart cloudera-scm-server
|
||||
service: name=cloudera-scm-server state=restarted
|
||||
|
||||
- name: Restart zeppelin
|
||||
service: name=zeppelin state=restarted
|
||||
|
|
|
@ -19,7 +19,12 @@
|
|||
- name: Install the Cloudera Manager DB configuration
|
||||
template: src=db.properties.j2 dest=/etc/cloudera-scm-server/db.properties mode=0640 owner=cloudera-scm group=cloudera-scm
|
||||
tags: [ 'cdh', 'hadoop', 'cdh_m_conf' ]
|
||||
|
||||
|
||||
- name: Install the Cloudera Manager defaults
|
||||
template: src=cloudera-scm-server.default.j2 dest=/etc/default/cloudera-scm-server owner=root group=root mode='0444'
|
||||
notify: Restart cloudera-scm-server
|
||||
tags: [ 'cdh', 'hadoop', 'cdh_conf' ]
|
||||
|
||||
- name: Ensure that the cloudera manager daemon is running and enabled
|
||||
service: name=cloudera-scm-server state=restarted enabled=yes
|
||||
|
||||
|
@ -34,7 +39,7 @@
|
|||
when: ansible_distribution_file_variety == "Debian"
|
||||
|
||||
- name: Download the jdbc driver
|
||||
get_url: url=https://jdbc.postgresql.org/download/postgresql-{{ postgresql_jdbc_driver_version }}.jar dest=/srv/postgresql.jar
|
||||
get_url: url=https://jdbc.postgresql.org/download/postgresql-{{ postgresql_jdbc_driver_version }}.jar dest='{{ cdh_cmf_jdbc_pg_driver }}'
|
||||
|
||||
when:
|
||||
- cdh_manager_install
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#
|
||||
# Specify any command line arguments for the Cloudera SCM Server here.
|
||||
#
|
||||
|
||||
CMF_SERVER_ARGS="{{ cdh_cmf_server_args }}"
|
||||
|
||||
#
|
||||
# Locate the JDBC driver jar file.
|
||||
#
|
||||
# The default value is the default system mysql driver on RHEL/CentOS/Ubuntu
|
||||
# and the standard, documented location for where to put the oracle jar in CM
|
||||
# deployments.
|
||||
#
|
||||
# export CMF_JDBC_DRIVER_JAR="/usr/share/java/mysql-connector-java.jar:/usr/share/java/oracle-connector-java.jar:/usr/share/java/postgresql-connector-java.jar"
|
||||
|
||||
export CMF_JDBC_DRIVER_JAR="{{ cdh_cmf_jdbc_pg_driver }}"
|
||||
|
||||
#
|
||||
# Java Options.
|
||||
#
|
||||
# Default value sets Java maximum heap size to 2GB, and Java maximum permanent
|
||||
# generation size to 256MB.
|
||||
#
|
||||
export CMF_JAVA_OPTS="{{ cdh_cmf_java_opts }}"
|
Loading…
Reference in New Issue