Skip to content

DSE topology with Kerberos and non Kerberos support - #2

Open
srids wants to merge 6 commits into
clusterdock:masterfrom
srids:dse-kerberos
Open

DSE topology with Kerberos and non Kerberos support#2
srids wants to merge 6 commits into
clusterdock:masterfrom
srids:dse-kerberos

Conversation

@srids

@srids srids commented Sep 22, 2017

Copy link
Copy Markdown

No description provided.

Comment thread README.rst Outdated
2017-09-20 10:18:53 PM clusterdock.topology_dse.start INFO From its node, DSE can be accessed with: cqlsh -u cassandra -p cassandra
2017-09-20 10:18:53 PM clusterdock.cli INFO Cluster started successfully (total time: 1m 14s).

To start a Kerberos based DSE cluster:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> Kerberos-based

Comment thread README.rst Outdated
--nodes node [node ...]
Nodes of the nodes group (default: ['node-1',
'node-2'])
'node-2'])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a duplicated line

Comment thread images/centos6.8/Dockerfile Outdated
ARG DSE_VERSION=5.1.3-1

RUN yum -y update && \
yum -y install unzip

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be a good idea to add a yum clean all line here to keep the image size down a little.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, I'd combine all of your yum lines into one here. Having them separate can make the image bloat considerably.

unzip -jo -d ${JDK_DIRECTORY}/jre/lib/security /tmp/unlimited_jce_policy.zip && \
rm -f /tmp/unlimited_jce_policy.zip

RUN update-alternatives --install "/usr/bin/java" "java" "${JDK_DIRECTORY}/bin/java" 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment above describing what's happening here?

Comment thread images/centos6.8/dse.repo Outdated
@@ -0,0 +1,5 @@
[datastax]
name = DataStax Repo for DataStax Enterprise
baseurl=https://srid%40streamsets.com:Streamsetsme3@rpm.datastax.com/enterprise

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't put your password in like this...

Comment thread start.py Outdated
node.execute(command="bash -c '{}'".format('; '.join(dse_kdc_commands)), quiet=quiet)
# DSE config specific commands
dse_config_commands = [
'cp {} {}.org'.format(DSE_CASSANDRA_CONF_FILEPATH, DSE_CASSANDRA_CONF_FILEPATH),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might wanna use .orig instead of .org for clarity.

Comment thread start.py
'mkdir -p {}'.format(DSE_CQLSHRC_HOME_DIR)
]
node.execute(command="bash -c '{}'".format('; '.join(dse_config_commands)), quiet=quiet)
# DSE cassandra.yaml mods

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any way to abstract away some of the duplication between this and the previous mods defined elsewhere? Might wanna have a common function that does behavior common to both and then just defer to specific Kerberos or non-Kerberos behavior from there?

Comment thread topology.yaml Outdated
# yaml definition file for the nodebase DSE topology.

name: DSE
description: A Datastax (DSE) cluster

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> DataStax Enterprise

Comment thread topology.yaml Outdated
description: A Datastax (DSE) cluster

node groups:
kdc-node:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to define this here? Might just be better to always have it called kdcoupin thekdc NodeGr and not be configurable for simplicity.

Comment thread topology.yaml Outdated
default: Test Cluster
help: DSE cluster name to use
--kerberos:
help: If specified, sets up Kerberos based DSE cluster with a KDC node

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> Kerberos-based

@srids

srids commented Nov 1, 2017

Copy link
Copy Markdown
Author

Fixed for all review comments. Please review again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants