Github user hegdean commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/546#discussion_r68082081
  
    --- Diff: install/installer/traf_secure_setup ---
    @@ -0,0 +1,342 @@
    +#!/bin/bash
    +
    +# @@@ START COPYRIGHT @@@
    +#
    +# Licensed to the Apache Software Foundation (ASF) under one
    +# or more contributor license agreements.  See the NOTICE file
    +# distributed with this work for additional information
    +# regarding copyright ownership.  The ASF licenses this file
    +# to you under the Apache License, Version 2.0 (the
    +# "License"); you may not use this file except in compliance
    +# with the License.  You may obtain a copy of the License at
    +#
    +#   http://www.apache.org/licenses/LICENSE-2.0
    +#
    +# Unless required by applicable law or agreed to in writing,
    +# software distributed under the License is distributed on an
    +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +# KIND, either express or implied.  See the License for the
    +# specific language governing permissions and limitations
    +# under the License.
    +#
    +# @@@ END COPYRIGHT @@@
    +
    +# KDC attributes
    +MAX_LIFETIME="24hours"
    +RENEW_LIFETIME="7days"
    +
    +# LDAP attributes
    +LDAP_AUTH_FILE="traf_authentication_config_${HOSTNAME}"
    +
    +HOST_NAME=`hostname -f`
    +
    +# These differ depending on the distribution
    +if [[ $HADOOP_TYPE == "cloudera" ]]; then
    +  TRAF_KEYTAB_DIR='/etc/trafodion'
    +  TRAF_KEYTAB="trafodion.keytab"
    +  HBASE_KEYTAB=`sudo find /var/run/cloudera-scm-agent/process/ -name 
hbase.keytab | grep 'hbase-MASTER' | head -n 1`
    +  HDFS_KEYTAB=`sudo find /var/run/cloudera-scm-agent/process/ -name 
hdfs.keytab | grep 'hdfs-NAMENODE/' | head -n 1`
    +else
    +  TRAF_KEYTAB_DIR='/etc/security/keytabs'
    +  TRAF_KEYTAB="trafodion.service.keytab"
    +  HBASE_KEYTAB='/etc/security/keytabs/hbase.service.keytab'
    +  HDFS_KEYTAB='/etc/security/keytabs/hdfs.headless.keytab'
    +fi
    +
    +#==============================================
    +#  Setup Trafodion environment for secure Hadoop
    +#==============================================
    +
    +LOCAL_WORKDIR="$( cd "$( dirname "$0" )" && pwd )"
    +
    +TRAF_CONFIG="/etc/trafodion/trafodion_config"
    +LOCAL_SECURE_CONFIG="$LOCAL_WORKDIR/trafodion_secure_config"
    +rm $LOCAL_SECURE_CONFIG  2>/dev/null
    +
    +
    +#==============================================
    +# Kerberos enabled
    +
    +echo "***INFO: Starting Trafodion security configuration setup"
    +
    +# Check to see if kerberos is enabled in Hadoop
    +cat /etc/hadoop/conf/core-site.xml | while read a; do
    --- End diff --
    
    Use HADOOP_CNF_DIR environment variable


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to