Skip to content

Commit bc2616d

Browse files
authored
Clean-up kerberos related messages appearing in non-kerberized CDH cluster start (#59)
1 parent 9ced6cd commit bc2616d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

start.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,12 +1503,14 @@ def _configure_for_streamsets_after_start(deployment, cluster_name, cluster, qui
15031503
primary_node.execute(command)
15041504

15051505
# Following is needed for Kerberos and Kafka to work correctly.
1506-
logger.info('Copying streamsets keytab to a fixed location which is shared on all clustered nodes ...')
1507-
commands = [('cp "$(find /var/run/cloudera-scm-agent/process/*streamsets-DATACOLLECTOR -maxdepth 0 -mindepth 0 | '
1508-
'sort -rs | head -1)/streamsets.keytab" {}/streamsets.keytab').format(KERBEROS_CONFIG_CONTAINER_DIR),
1509-
'chown sdc:sdc {}/streamsets.keytab'.format(KERBEROS_CONFIG_CONTAINER_DIR),
1510-
'chown sdc:sdc {}'.format(JAAS_CONFIG_FILE_PATH)]
1511-
cluster.primary_node.execute(' && '.join(commands))
1506+
if kerberos_enabled:
1507+
logger.info('Copying streamsets keytab to a fixed location which is shared on all clustered nodes ...')
1508+
commands = [('cp "$(find /var/run/cloudera-scm-agent/process/*streamsets-DATACOLLECTOR '
1509+
' -maxdepth 0 -mindepth 0 | sort -rs | '
1510+
'head -1)/streamsets.keytab" {}/streamsets.keytab').format(KERBEROS_CONFIG_CONTAINER_DIR),
1511+
'chown sdc:sdc {}/streamsets.keytab'.format(KERBEROS_CONFIG_CONTAINER_DIR),
1512+
'chown sdc:sdc {}'.format(JAAS_CONFIG_FILE_PATH)]
1513+
cluster.primary_node.execute(' && '.join(commands))
15121514

15131515
cluster_service_types = {service['type']
15141516
for service

0 commit comments

Comments
 (0)