Arpit Agarwal created HDDS-1244:
-----------------------------------

             Summary: ozone sh put not working in docker container
                 Key: HDDS-1244
                 URL: https://issues.apache.org/jira/browse/HDDS-1244
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Arpit Agarwal
         Attachments: client-logs.txt

Steps to repro:
# Bring up docker cluster with
```
docker-compose up -d --scale datanode=3
```
# ssh to datanode
```
docker-compose exec datanode /bin/bash
```
# Try to put a key
```
ozone sh volume create /vol1
ozone sh bucket create /vol1/bucket1
ozone sh key put /vol1/bucket1/key1 /tmp/hadoop-hadoop-datanode.pid
```

This gives the following error.
```
2019-03-10 21:58:09 ERROR BlockOutputStream:558 - Unexpected Storage Container 
Exception:
org.apache.hadoop.hdds.scm.container.common.helpers.StorageContainerException: 
ContainerID 1 does not exist
        at 
org.apache.hadoop.hdds.scm.storage.ContainerProtocolCalls.validateContainerResponse(ContainerProtocolCalls.java:573)
        at 
org.apache.hadoop.hdds.scm.storage.BlockOutputStream.validateResponse(BlockOutputStream.java:556)
        at 
org.apache.hadoop.hdds.scm.storage.BlockOutputStream.lambda$writeChunkToContainer$5(BlockOutputStream.java:634)
        at 
java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
```

Debug client logs attached.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to