Search in sources :

Example 16 with StorageContainerLocationProtocol

use of org.apache.hadoop.hdds.scm.protocol.StorageContainerLocationProtocol in project ozone by apache.

the class ReconControllerModule method getSCMProtocol.

@Provides
StorageContainerLocationProtocol getSCMProtocol(final OzoneConfiguration configuration) {
    StorageContainerLocationProtocol storageContainerLocationProtocol = null;
    storageContainerLocationProtocol = newContainerRpcClient(configuration);
    return storageContainerLocationProtocol;
}
Also used : StorageContainerLocationProtocol(org.apache.hadoop.hdds.scm.protocol.StorageContainerLocationProtocol) Provides(com.google.inject.Provides)

Example 17 with StorageContainerLocationProtocol

use of org.apache.hadoop.hdds.scm.protocol.StorageContainerLocationProtocol in project ozone by apache.

the class HAUtils method getScmContainerClient.

public static StorageContainerLocationProtocol getScmContainerClient(ConfigurationSource conf) {
    SCMContainerLocationFailoverProxyProvider proxyProvider = new SCMContainerLocationFailoverProxyProvider(conf, null);
    StorageContainerLocationProtocol scmContainerClient = TracingUtil.createProxy(new StorageContainerLocationProtocolClientSideTranslatorPB(proxyProvider), StorageContainerLocationProtocol.class, conf);
    return scmContainerClient;
}
Also used : StorageContainerLocationProtocol(org.apache.hadoop.hdds.scm.protocol.StorageContainerLocationProtocol) StorageContainerLocationProtocolClientSideTranslatorPB(org.apache.hadoop.hdds.scm.protocolPB.StorageContainerLocationProtocolClientSideTranslatorPB) SCMContainerLocationFailoverProxyProvider(org.apache.hadoop.hdds.scm.proxy.SCMContainerLocationFailoverProxyProvider)

Aggregations

StorageContainerLocationProtocol (org.apache.hadoop.hdds.scm.protocol.StorageContainerLocationProtocol)17 Pipeline (org.apache.hadoop.hdds.scm.pipeline.Pipeline)8 OzoneConfiguration (org.apache.hadoop.hdds.conf.OzoneConfiguration)7 Test (org.junit.Test)5 IOException (java.io.IOException)4 ContainerWithPipeline (org.apache.hadoop.hdds.scm.container.common.helpers.ContainerWithPipeline)4 StorageContainerLocationProtocolClientSideTranslatorPB (org.apache.hadoop.hdds.scm.protocolPB.StorageContainerLocationProtocolClientSideTranslatorPB)4 SCMContainerLocationFailoverProxyProvider (org.apache.hadoop.hdds.scm.proxy.SCMContainerLocationFailoverProxyProvider)4 StorageContainerServiceProvider (org.apache.hadoop.ozone.recon.spi.StorageContainerServiceProvider)4 ArrayList (java.util.ArrayList)3 ContainerInfo (org.apache.hadoop.hdds.scm.container.ContainerInfo)3 InputStream (java.io.InputStream)2 HttpURLConnection (java.net.HttpURLConnection)2 LinkedList (java.util.LinkedList)2 List (java.util.List)2 RandomStringUtils (org.apache.commons.lang3.RandomStringUtils)2 BlockID (org.apache.hadoop.hdds.client.BlockID)2 DatanodeDetails (org.apache.hadoop.hdds.protocol.DatanodeDetails)2 XceiverClientManager (org.apache.hadoop.hdds.scm.XceiverClientManager)2 OzoneStorageContainerManager (org.apache.hadoop.hdds.scm.server.OzoneStorageContainerManager)2