dreamputer commented on pull request #1100:
URL: https://github.com/apache/iceberg/pull/1100#issuecomment-855204170
Hi, I was not able to create table with error "**Requested replication 0 is
less than the required minimum 1**". Any pointers? Thanks!
scala> val table = tables.create(schema, spec, "hdfs:/tables/logging/logs")
org.apache.iceberg.exceptions.RuntimeIOException: Failed to create file:
hdfs:/tables/logging/logs/metadata/d87fd555-e59b-48c1-8ad9-b426354a1c7f.metadata.json
at
org.apache.iceberg.hadoop.HadoopOutputFile.create(HadoopOutputFile.java:78)
at
org.apache.iceberg.TableMetadataParser.internalWrite(TableMetadataParser.java:113)
at
org.apache.iceberg.TableMetadataParser.write(TableMetadataParser.java:107)
at
org.apache.iceberg.hadoop.HadoopTableOperations.commit(HadoopTableOperations.java:142)
at org.apache.iceberg.hadoop.HadoopTables.create(HadoopTables.java:149)
at org.apache.iceberg.Tables.create(Tables.java:37)
... 49 elided
Caused by: org.apache.hadoop.ipc.RemoteException: file
/tables/logging/logs/metadata/d87fd555-e59b-48c1-8ad9-b426354a1c7f.metadata.json
on client 172.19.0.3.
Requested replication 0 is less than the required minimum 1
at
org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.verifyReplication(BlockManager.java:1036)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInt(FSNamesystem.java:2389)
at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFile(FSNamesystem.java:2349)
at
org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.create(NameNodeRpcServer.java:624)
at
org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.create(ClientNamenodeProtocolServerSideTranslatorPB.java:398)
at
org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
at
org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2217)
at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2213)
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:1746)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2213)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]