[ 
https://issues.apache.org/jira/browse/HDDS-5894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Krishna Kumar Asawa resolved HDDS-5894.
---------------------------------------
    Resolution: Abandoned

Information not available

> 连接ozone操作异常
> -----------
>
>                 Key: HDDS-5894
>                 URL: https://issues.apache.org/jira/browse/HDDS-5894
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: OM
>    Affects Versions: 1.1.0
>            Reporter: 彭卓勋
>            Priority: Major
>
>  
> <property>
>  <name>fs.defaultFS</name>
>  <value>ofs://nameservice1</value>
> </property>
> <property>
>  <name>fs.o3.impl</name>
>  <value>org.apache.hadoop.fs.ozone.RootedOzoneFileSystem</value>
> </property>
>  
> 核心代码:
> OzoneConfiguration configuration = new OzoneConfiguration();
>  configuration.addResource(new Path(confPath + "/core-site.xml"));
>  configuration.addResource(new Path(confPath + "/hdfs-site.xml"));
>  configuration.addResource(new Path(confPath + "/ozone-site.xml"));
>  configuration.addResource(new Path(confPath + "/ssl-client.xml"));
> // configuration.set("fs.o3fs.impl", 
> "org.apache.hadoop.fs.ozone.OzoneFileSystem");
> // configuration.set("fs.AbstractFileSystem.o3fs.impl", 
> "org.apache.hadoop.fs.ozone.OzFs");
>  System.setProperty("HADOOP_USER_NAME", "prddcome");
>  kerberosConfig.initKerberosENV(configuration);
> // OzoneClient ozClient = OzoneClientFactory.getRpcClient();
> // OzoneClient ozClient = OzoneClientFactory.getRpcClient();
> // OzoneVolume volume=ozClient.getObjectStore().getVolume("vol1");
> // volume.createBucket("cn1");
>  return FileSystem.get(configuration);
>  
> 异常如下:
> 2021-10-25 09:15:14.733 [main] INFO  
> org.apache.hadoop.io.retry.RetryInvocationHandler 411 log - 
> com.google.protobuf.ServiceException: 
> org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ozone.om.exceptions.OMNotLeaderException):
>  OM:om2 is not the leader. Could not determine the leader node.2021-10-25 
> 09:15:14.733 [main] INFO  org.apache.hadoop.io.retry.RetryInvocationHandler 
> 411 log - com.google.protobuf.ServiceException: 
> org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ozone.om.exceptions.OMNotLeaderException):
>  OM:om2 is not the leader. Could not determine the leader node. at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.createNotLeaderException(OzoneManagerProtocolServerSideTranslatorPB.java:202)
>  at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.createLeaderErrorException(OzoneManagerProtocolServerSideTranslatorPB.java:215)
>  at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitReadRequestToOM(OzoneManagerProtocolServerSideTranslatorPB.java:192)
>  at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.processRequest(OzoneManagerProtocolServerSideTranslatorPB.java:132)
>  at 
> org.apache.hadoop.hdds.server.OzoneProtocolMessageDispatcher.processRequest(OzoneProtocolMessageDispatcher.java:87)
>  at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitRequest(OzoneManagerProtocolServerSideTranslatorPB.java:122)
>  at 
> org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos$OzoneManagerService$2.callBlockingMethod(OzoneManagerProtocolProtos.java)
>  at 
> org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:528)
>  at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1070) at 
> org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:989) at 
> org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:917) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> javax.security.auth.Subject.doAs(Subject.java:422) at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898)
>  at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2894), while 
> invoking $Proxy97.submitRequest over 
> nodeId=om2,nodeAddress=ozone02-s02b0407.prd.qizhidao.com:9862 after 1 
> failover attempts. Trying to failover immediately.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to