Skip to content

Commit f75e1b0

Browse files
committed
HBASE-26899 Run spotless:apply
1 parent f51e579 commit f75e1b0

File tree

4,707 files changed

+102028
-121967
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,707 files changed

+102028
-121967
lines changed

CHANGES.txt

Lines changed: 114 additions & 114 deletions
Large diffs are not rendered by default.

bin/considerAsDead.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# * See the License for the specific language governing permissions and
1818
# * limitations under the License.
1919
# */
20-
#
20+
#
2121

2222
usage="Usage: considerAsDead.sh --hostname serverName"
2323

@@ -50,12 +50,12 @@ do
5050
rs_parts=(${rs//,/ })
5151
hostname=${rs_parts[0]}
5252
echo $deadhost
53-
echo $hostname
53+
echo $hostname
5454
if [ "$deadhost" == "$hostname" ]; then
5555
znode="$zkrs/$rs"
5656
echo "ZNode Deleting:" $znode
5757
$bin/hbase zkcli delete $znode > /dev/null 2>&1
5858
sleep 1
59-
ssh $HBASE_SSH_OPTS $hostname $remote_cmd 2>&1 | sed "s/^/$hostname: /"
60-
fi
59+
ssh $HBASE_SSH_OPTS $hostname $remote_cmd 2>&1 | sed "s/^/$hostname: /"
60+
fi
6161
done

bin/hbase-cleanup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ check_for_znodes() {
7474
znodes=`"$bin"/hbase zkcli ls $zparent/$zchild 2>&1 | tail -1 | sed "s/\[//" | sed "s/\]//"`
7575
if [ "$znodes" != "" ]; then
7676
echo -n "ZNode(s) [${znodes}] of $command are not expired. Exiting without cleaning hbase data."
77-
echo #force a newline
77+
echo #force a newline
7878
exit 1;
7979
else
8080
echo -n "All ZNode(s) of $command are expired."
@@ -99,7 +99,7 @@ execute_clean_acls() {
9999

100100
clean_up() {
101101
case $1 in
102-
--cleanZk)
102+
--cleanZk)
103103
execute_zk_command "deleteall ${zparent}";
104104
;;
105105
--cleanHdfs)
@@ -120,7 +120,7 @@ clean_up() {
120120
;;
121121
*)
122122
;;
123-
esac
123+
esac
124124
}
125125

126126
check_znode_exists() {

bin/hbase-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ do
103103
break
104104
fi
105105
done
106-
106+
107107
# Allow alternate hbase conf dir location.
108108
HBASE_CONF_DIR="${HBASE_CONF_DIR:-$HBASE_HOME/conf}"
109109
# List of hbase regions servers.

bin/master-backup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# * See the License for the specific language governing permissions and
1818
# * limitations under the License.
1919
# */
20-
#
20+
#
2121
# Run a shell command on all backup master hosts.
2222
#
2323
# Environment Variables
@@ -45,7 +45,7 @@ bin=`cd "$bin">/dev/null; pwd`
4545
. "$bin"/hbase-config.sh
4646

4747
# If the master backup file is specified in the command line,
48-
# then it takes precedence over the definition in
48+
# then it takes precedence over the definition in
4949
# hbase-env.sh. Save it here.
5050
HOSTLIST=$HBASE_BACKUP_MASTERS
5151

@@ -69,6 +69,6 @@ if [ -f $HOSTLIST ]; then
6969
sleep $HBASE_SLAVE_SLEEP
7070
fi
7171
done
72-
fi
72+
fi
7373

7474
wait

bin/regionservers.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# * See the License for the specific language governing permissions and
1818
# * limitations under the License.
1919
# */
20-
#
20+
#
2121
# Run a shell command on all regionserver hosts.
2222
#
2323
# Environment Variables
@@ -45,7 +45,7 @@ bin=`cd "$bin">/dev/null; pwd`
4545
. "$bin"/hbase-config.sh
4646

4747
# If the regionservers file is specified in the command line,
48-
# then it takes precedence over the definition in
48+
# then it takes precedence over the definition in
4949
# hbase-env.sh. Save it here.
5050
HOSTLIST=$HBASE_REGIONSERVERS
5151

bin/stop-hbase.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fi
5252

5353
export HBASE_LOG_PREFIX=hbase-$HBASE_IDENT_STRING-master-$HOSTNAME
5454
export HBASE_LOGFILE=$HBASE_LOG_PREFIX.log
55-
logout=$HBASE_LOG_DIR/$HBASE_LOG_PREFIX.out
55+
logout=$HBASE_LOG_DIR/$HBASE_LOG_PREFIX.out
5656
loglog="${HBASE_LOG_DIR}/${HBASE_LOGFILE}"
5757
pid=${HBASE_PID_DIR:-/tmp}/hbase-$HBASE_IDENT_STRING-master.pid
5858

@@ -74,7 +74,7 @@ fi
7474
# distributed == false means that the HMaster will kill ZK when it exits
7575
# HBASE-6504 - only take the first line of the output in case verbose gc is on
7676
distMode=`$bin/hbase --config "$HBASE_CONF_DIR" org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed | head -n 1`
77-
if [ "$distMode" == 'true' ]
77+
if [ "$distMode" == 'true' ]
7878
then
7979
"$bin"/hbase-daemons.sh --config "${HBASE_CONF_DIR}" stop zookeeper
8080
fi

bin/test/process_based_cluster.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ while [ $# -ne 0 ]; do
6868
-h|--help)
6969
print_usage ;;
7070
--kill)
71-
IS_KILL=1
71+
IS_KILL=1
7272
cmd_specified ;;
7373
--show)
7474
IS_SHOW=1
@@ -106,5 +106,3 @@ else
106106
echo "No command specified" >&2
107107
exit 1
108108
fi
109-
110-

bin/zookeepers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# * See the License for the specific language governing permissions and
1818
# * limitations under the License.
1919
# */
20-
#
20+
#
2121
# Run a shell command on all zookeeper hosts.
2222
#
2323
# Environment Variables

conf/hbase-env.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# The maximum amount of heap to use. Default is left to JVM default.
3434
# export HBASE_HEAPSIZE=1G
3535

36-
# Uncomment below if you intend to use off heap cache. For example, to allocate 8G of
36+
# Uncomment below if you intend to use off heap cache. For example, to allocate 8G of
3737
# offheap, set the value to "8G". See http://hbase.apache.org/book.html#direct.memory
3838
# in the refguide for guidance setting this config.
3939
# export HBASE_OFFHEAPSIZE=1G
@@ -71,7 +71,7 @@
7171
# export CLIENT_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=512M"
7272

7373
# See the package documentation for org.apache.hadoop.hbase.io.hfile for other configurations
74-
# needed setting up off-heap block caching.
74+
# needed setting up off-heap block caching.
7575

7676
# Uncomment and adjust to enable JMX exporting
7777
# See jmxremote.password and jmxremote.access in $JRE_HOME/lib/management to configure remote password access.
@@ -102,7 +102,7 @@
102102
# Where log files are stored. $HBASE_HOME/logs by default.
103103
# export HBASE_LOG_DIR=${HBASE_HOME}/logs
104104

105-
# Enable remote JDWP debugging of major HBase processes. Meant for Core Developers
105+
# Enable remote JDWP debugging of major HBase processes. Meant for Core Developers
106106
# export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8070"
107107
# export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8071"
108108
# export HBASE_THRIFT_OPTS="$HBASE_THRIFT_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8072"
@@ -126,13 +126,13 @@
126126
# Tell HBase whether it should manage it's own instance of ZooKeeper or not.
127127
# export HBASE_MANAGES_ZK=true
128128

129-
# The default log rolling policy is RFA, where the log file is rolled as per the size defined for the
129+
# The default log rolling policy is RFA, where the log file is rolled as per the size defined for the
130130
# RFA appender. Please refer to the log4j2.properties file to see more details on this appender.
131131
# In case one needs to do log rolling on a date change, one should set the environment property
132132
# HBASE_ROOT_LOGGER to "<DESIRED_LOG LEVEL>,DRFA".
133133
# For example:
134134
# export HBASE_ROOT_LOGGER=INFO,DRFA
135-
# The reason for changing default to RFA is to avoid the boundary case of filling out disk space as
135+
# The reason for changing default to RFA is to avoid the boundary case of filling out disk space as
136136
# DRFA doesn't put any cap on the log size. Please refer to HBase-5655 for more context.
137137

138138
# Tell HBase whether it should include Hadoop's lib when start up,

0 commit comments

Comments
 (0)