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

    https://github.com/apache/spark/pull/22608#discussion_r229371556
  
    --- Diff: 
resource-managers/kubernetes/docker/src/test/scripts/populate-data.sh ---
    @@ -0,0 +1,42 @@
    +#!/usr/bin/env bash
    +#
    +# 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.
    +#
    +export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk
    +export PATH=/hadoop/bin:$PATH
    +export HADOOP_CONF_DIR=/hadoop/etc/hadoop
    +export HADOOP_OPTS="-Djava.net.preferIPv4Stack=true 
-Dsun.security.krb5.debug=true ${HADOOP_OPTS}"
    +export KRB5CCNAME=KRBCONF
    +mkdir -p /hadoop/etc/data
    +cp ${TMP_KRB_LOC} /etc/krb5.conf
    +cp ${TMP_CORE_LOC} /hadoop/etc/hadoop/core-site.xml
    +cp ${TMP_HDFS_LOC} /hadoop/etc/hadoop/hdfs-site.xml
    +
    +until kinit -kt /var/keytabs/hdfs.keytab 
hdfs/nn.${NAMESPACE}.svc.cluster.local; do sleep 2; done
    +
    +until (echo > /dev/tcp/nn.${NAMESPACE}.svc.cluster.local/9000) >/dev/null 
2>&1; do sleep 2; done
    +
    +hdfs dfsadmin -safemode wait
    +
    +
    +hdfs dfs -mkdir -p /user/ifilonenko/
    --- End diff --
    
    Please no personal identifier in the path.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to