Skip to content

Commit

Permalink
Update ssm-cdh5.10-deployment-guide.md
Browse files Browse the repository at this point in the history
Add DB manual creation and format steps
  • Loading branch information
ChenSammi authored Jul 19, 2017
1 parent 6d481ca commit 8a16a0c
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions docs/ssm-cdh5.10-deployment-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ installed Smart Server.'
```xml
<property>
<name>smart.server.rpc.address</name>
<value>127.0.0.1</value>
<value>ssm-server-ip</value>
</property>
<property>
<name>smart.server.rpc.port</name>
Expand Down Expand Up @@ -75,13 +75,13 @@ the configuration takes effect. You can try TestDFSIO for example,

a. write data

`hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.0.0-alpha2-SNAPSHOT-tests.jar TestDFSIO –write –nrFiles 5 –size 5MB`
`hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.0-cdh5.10.1-tests.jar TestDFSIO –write –nrFiles 5 –size 5MB`

b. read data

`hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.0.0-alpha2-SNAPSHOT-tests.jar TestDFSIO –read`
`hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.0-cdh5.10.1-tests.jar TestDFSIO –read`

You may want to replace the jar with the version used in the CDH. After the read data opertion, if all the data files are listed on SSM web UI page "hot files" table, then the integration works very well.
You may want to replace the jar with the version used in your CDH. After the read data opertion, if all the data files are listed on SSM web UI page "hot files" table, then the integration works very well.

SSM Configuration
---------------------------------------------------------------------------------
Expand All @@ -94,7 +94,7 @@ SSM Configuration

```xml
<name>smart.dfs.namenode.rpcserver</name>
<value>hdfs://localhost:9000</value>
<value>hdfs://namenode-ip:9000</value>
<description>Hadoop cluster Namenode RPC server address and port</description>
</property>
```
Expand All @@ -111,10 +111,19 @@ SSM Configuration
......
</properties>
```

ssm-metastore is the Database name. You need to create it before first after you installed MySql.

4. Format Database with command

`bin/start-smart.sh -format`

The script will create all tables required by SSM.


4. Start SSM server with command

`bin/start-smart.sh" --config ./conf --daemon`
`bin/start-smart.sh --config ./conf --daemon`

`--config <config-dir>` configures where the configuration file directory is and

Expand Down

0 comments on commit 8a16a0c

Please sign in to comment.