Created 04-23-2023 06:22 AM
Hi. I am trying to write data to hadoop cluster running in HDP 2.6.5 from a local nifi instance. But I receive the following error on write
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /home/maria_dev/.2d0282a9-8c6a-4bde-beb1-82eb1b061941 could only be replicated to 0 nodes instead of minReplication (=1). There are 1 datanode(s) running and 1 node(s) are excluded in this operation.
In the HDFS data node logs, I see the below error logs
2023-04-18 12:05:13,386 WARN blockmanagement.BlockPlacementPolicy (BlockPlacementPolicyDefault.java:chooseTarget(385)) - Failed to place enough repl
icas, still in need of 1 to reach 1 (unavailableStorages=[], storagePolicy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], repli
cationFallbacks=[ARCHIVE]}, newBlock=true) For more information, please enable DEBUG log level on org.apache.hadoop.hdfs.server.blockmanagement.Block
PlacementPolicy and org.apache.hadoop.net.NetworkTopology
Have validated follow things in Hadoop cluster
Data node is up and running and not running out of space, not in safe mode.
Created 04-24-2023 05:51 AM
This is not a permission issue at this point but more of an issue between NameNode and DataNode.
I would request you start a new thread for HDFS.
Thank you
Created 04-24-2023 01:52 AM
@iamlazycoder, Welcome to our community! To help you get the best possible answer, I have tagged in our Nifi experts @MattWho @ckumar @steven-matison @SAMSAL @cotopaul who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 04-24-2023 02:22 AM
Looking at the error snipped, this seems to be an HDFS-level issue, but just to make sure
I assume you are be using NiFi: PutHDFS processor to write into the HDFS cluster thus, I would check following
Thank you
Created 04-24-2023 04:34 AM
@ckumar This exception happens even outside of Nifi. I get the same error while writing to HDFS location using HDFS client also. Can this error happen because of permission issue to the HDFS directory for the system user which runs my NIFI process or HDFS client.
Created 04-24-2023 05:51 AM
This is not a permission issue at this point but more of an issue between NameNode and DataNode.
I would request you start a new thread for HDFS.
Thank you
Created 04-24-2023 09:32 PM
@ckumar Thanks.
Created 04-24-2023 10:38 PM
@iamlazycoder Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.
Regards,
Vidya Sargur,Created 04-27-2023 11:12 PM
Raised HDFS thread for the above issue
https://community.cloudera.com/t5/Support-Questions/second-replica-is-not-found-while-writing-a-simp...