Example usage for org.apache.hadoop.hdfs.server.common StorageInfo getClusterID

List of usage examples for org.apache.hadoop.hdfs.server.common StorageInfo getClusterID

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.server.common StorageInfo getClusterID.

Prototype

public String getClusterID() 

Source Link

Document

cluster id of the file system.

Usage

From source file:io.hops.metadata.HdfsVariables.java

License:Apache License

public static void setStorageInfo(StorageInfo storageInfo)
        throws StorageException, TransactionContextException {
    List<Object> vals = new ArrayList<Object>();
    vals.add(storageInfo.getLayoutVersion());
    vals.add(storageInfo.getNamespaceID());
    vals.add(storageInfo.getClusterID());
    vals.add(storageInfo.getCTime());/*from w ww . java  2 s .c om*/
    vals.add(storageInfo.getBlockPoolId());
    Variables.updateVariable(new ArrayVariable(Variable.Finder.StorageInfo, vals));
}