HDFS-12554. Ozone: Fix TestDatanodeStateMachine#testDatanodeStateMachineWithInvalidConfiguration. Contributed by Ajay Kumar.
This commit is contained in:
parent
9530153f33
commit
13fdb58490
@ -270,7 +270,7 @@ public static File getScmMetadirPath(Configuration conf) {
|
|||||||
*/
|
*/
|
||||||
public static String getDatanodeIDPath(Configuration conf) {
|
public static String getDatanodeIDPath(Configuration conf) {
|
||||||
String dataNodeIDPath = conf.get(ScmConfigKeys.OZONE_SCM_DATANODE_ID);
|
String dataNodeIDPath = conf.get(ScmConfigKeys.OZONE_SCM_DATANODE_ID);
|
||||||
if (Strings.isNullOrEmpty(dataNodeIDPath)) {
|
if (dataNodeIDPath == null) {
|
||||||
String metaPath = conf.get(OzoneConfigKeys.OZONE_METADATA_DIRS);
|
String metaPath = conf.get(OzoneConfigKeys.OZONE_METADATA_DIRS);
|
||||||
if (Strings.isNullOrEmpty(metaPath)) {
|
if (Strings.isNullOrEmpty(metaPath)) {
|
||||||
// this means meta data is not found, in theory should not happen at
|
// this means meta data is not found, in theory should not happen at
|
||||||
|
@ -139,9 +139,9 @@ place and not mingled with HDFS settings.
|
|||||||
```
|
```
|
||||||
|
|
||||||
* _*ozone.scm.datanode.id*_ Each datanode that speaks to SCM generates an ID
|
* _*ozone.scm.datanode.id*_ Each datanode that speaks to SCM generates an ID
|
||||||
just like HDFS. This ID is stored is a location pointed by this setting. If
|
just like HDFS. This is an optional setting. Please note:
|
||||||
this setting is not valid, datanodes will fail to come up. Please note:
|
This path will be created by datanodes if it doesn't exist already. Here is an
|
||||||
This path that is will created by datanodes to store the datanode ID. Here is an example,
|
example,
|
||||||
|
|
||||||
```
|
```
|
||||||
<property>
|
<property>
|
||||||
|
Loading…
Reference in New Issue
Block a user