This repository was archived by the owner on Mar 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathproject_properties.sh
More file actions
71 lines (54 loc) · 2.34 KB
/
Copy pathproject_properties.sh
File metadata and controls
71 lines (54 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed 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.
# Begin: edit these values to set up your cluster
# GCS bucket for packages
readonly GCS_PACKAGE_BUCKET={{{{ bucket_name }}}}
# Zone of the Hadoop master instance
readonly ZONE={{{{ zone_id }}}}
# Hadoop master instance name
readonly MASTER={{{{ master_hostname }}}}
# Subdirectory in cloud storage where packages are pushed at initial setup
readonly GCS_PACKAGE_DIR=hdp_tools
# Full GCS URIs of the Pig and Hive tarballs, if packages-to-gcs__at__host.sh
# is used; alternatively, these can be set to other pre-existing GCS paths
readonly SUPPORTED_HDPTOOLS="hive pig"
readonly TARBALL_BASE="gs://$GCS_PACKAGE_BUCKET/$GCS_PACKAGE_DIR/packages"
readonly HIVE_TARBALL_URI="$TARBALL_BASE/hive/hive-*.tar.gz"
readonly PIG_TARBALL_URI="$TARBALL_BASE/pig/pig-*.tar.gz"
# Directory on master where hadoop is installed
readonly HADOOP_HOME=/home/hadoop/hadoop
# Set to the major version of hadoop ("1" or "2")
readonly HADOOP_MAJOR_VERSION="1"
# Hadoop username and group on Compute Engine Cluster
readonly HADOOP_USER=hadoop
readonly HADOOP_GROUP=hadoop
# Hadoop client username on Compute Engine Cluster
readonly HDP_USER=hdpuser
# Directory on master where packages are installed
readonly HDP_USER_HOME=/home/hdpuser
readonly MASTER_INSTALL_DIR=/home/hdpuser
# End: edit these values to set up your cluster
# Begin: constants used througout the solution
# Subdirectory where packages files (tar.gz) are stored
readonly PACKAGES_DIR=packages
# Subdirectory where scripts are stored
readonly SCRIPTS_DIR=scripts
# Subdirectory on master where we pull down package files
readonly MASTER_PACKAGE_DIR=/tmp/hdp_tools
# User tmp dir in HDFS
readonly HDFS_TMP_DIR="/tmp"
# Hadoop temp dir (hadoop.tmp.dir)
readonly HADOOP_TMP_DIR="/hadoop/tmp"
# End: constants used througout the solution