Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
[AUTOCONF] setting default values for config
Browse files Browse the repository at this point in the history
Summary:
Reverted some ports and values for default cluster setup,
additionally made `start-dev-cluster.sh` using --seekconfig
option by default

Test Plan: ran a cluster

Reviewers: tomasz, hkuang

Reviewed By: tomasz
  • Loading branch information
alushnikov authored and Alex Feinberg committed Nov 8, 2012
1 parent 476ea70 commit 22e9ece
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions hdfs-autoconf/config-templates/avatar-site.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<property>
<name>dfs.http.address0</name>
<value>localhost:50199</value>
<value>localhost:50070</value>
<description>
The address and the base port where the dfs namenode web ui will listen on.
If the port is 0 then the server will start on a free port.
Expand All @@ -14,7 +14,7 @@

<property>
<name>dfs.http.address1</name>
<value>localhost:50202</value>
<value>localhost:50080</value>
<description>
The address and the base port where the dfs namenode web ui will listen on.
If the port is 0 then the server will start on a free port.
Expand Down Expand Up @@ -95,7 +95,7 @@

<property>
<name>dfs.namenode.dn-address0</name>
<value>localhost:9015</value>
<value>localhost:9005</value>
<description>
The address and port to run the RPC server which will be processing
requests from datanodes in the cluster.
Expand All @@ -104,7 +104,7 @@

<property>
<name>dfs.namenode.dn-address1</name>
<value>localhost:9025</value>
<value>localhost:9006</value>
<description>
The address and port to run the RPC server which will be processing
requests from datanodes in the cluster.
Expand Down
15 changes: 9 additions & 6 deletions hdfs-autoconf/config-templates/core-site.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9010</value>
<value>hdfs://localhost:9000</value>
<description>The name of the default file system. A URI whose
scheme and authority determine the FileSystem implementation. The
uri's scheme determines the config property (fs.SCHEME.impl) naming
Expand All @@ -17,7 +17,7 @@

<property>
<name>fs.default.name0</name>
<value>hdfs://localhost:9010</value>
<value>hdfs://localhost:9000</value>
<description>The name of the default file system. A URI whose
scheme and authority determine the FileSystem implementation. The
uri's scheme determines the config property (fs.SCHEME.impl) naming
Expand All @@ -27,7 +27,7 @@

<property>
<name>fs.default.name1</name>
<value>hdfs://localhost:9020</value>
<value>hdfs://localhost:9010</value>
<description>The name of the default file system. A URI whose
scheme and authority determine the FileSystem implementation. The
uri's scheme determines the config property (fs.SCHEME.impl) naming
Expand All @@ -38,14 +38,17 @@
<property>
<name>fs.checkpoint.period</name>
<value>600</value>
<description>...
<description>
The number of seconds between two periodic checkpoints
</description>
</property>

<property>
<name>fs.checkpoint.size</name>
<value>10000000</value>
<description>...
<description>
Defines the size of the edits log file that forces an urgent checkpoint even
if the maximum checkpoint delay is not reached.
</description>
</property>

Expand All @@ -57,7 +60,7 @@

<property>
<name>ipc.client.connect.max.retries</name>
<value>2</value>
<value>10</value>
</property>

<property>
Expand Down
4 changes: 2 additions & 2 deletions hdfs-autoconf/config-templates/hdfs-site.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<property>
<name>dfs.http.address</name>
<value>127.0.0.1:50199</value>
<value>127.0.0.1:50070</value>
<description>
The address and the base port where the dfs namenode web ui will listen on.
If the port is 0 then the server will start on a free port.
Expand All @@ -36,7 +36,7 @@

<property>
<name>dfs.fullblockreport.magnifier</name>
<value>1</value>
<value>2</value>
<description>
Determines the full block reporting interval, which is magnifier
times the delete block report interval.
Expand Down
5 changes: 1 addition & 4 deletions hdfs-autoconf/start-dev-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ usage="USAGE
bash $(basename $0) [--help] [--format] [--count number | --seekconfig]
DESCRIPTION
Launching without arguments equals to '--count 1'
Launching without arguments equals to '--seekconfig'
specified argument
Starts locally two avatar namenodes and, depending on the option
Expand Down Expand Up @@ -47,9 +47,6 @@ if (( $# >= 1 )); then
fi

mode="seek";
if (( $# == 0 )); then
mode=1
fi

if (( $# >= 1 )); then
if [[ $1 == "--seekconfig" ]]; then
Expand Down

0 comments on commit 22e9ece

Please sign in to comment.