Skip to content

Commit

Permalink
Fix some quickstart issues (#1388)
Browse files Browse the repository at this point in the history
- New config is needed for partitions that have fewer than 3 local
  replicas
- Newer netty versions no longer accept spaces before the colon in
  headers
- x-ambry-blob-size no longer required on uploads
  • Loading branch information
cgtz authored Feb 15, 2020
1 parent 042bcd5 commit 3f023a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The log will be available at `logs/frontend.log`. Alternately, you can change th
##### Step 4: Interact with Ambry !
We are now ready to store and retrieve data from Ambry. Let us start by storing a simple image. For demonstration purposes, we will use an image `demo.gif` that has been copied into the `target` folder.
###### POST
$ curl -i -H "x-ambry-blob-size : `wc -c demo.gif | xargs | cut -d" " -f1`" -H "x-ambry-service-id : CUrlUpload" -H "x-ambry-owner-id : `whoami`" -H "x-ambry-content-type : image/gif" -H "x-ambry-um-description : Demonstration Image" http://localhost:1174/ --data-binary @demo.gif
$ curl -i -H "x-ambry-service-id:CUrlUpload" -H "x-ambry-owner-id:`whoami`" -H "x-ambry-content-type:image/gif" -H "x-ambry-um-description:Demonstration Image" http://localhost:1174/ --data-binary @demo.gif
HTTP/1.1 201 Created
Location: AmbryID
Content-Length: 0
Expand Down
1 change: 1 addition & 0 deletions config/frontend.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ router.delete.success.target=1
clustermap.cluster.name=Ambry_Dev
clustermap.datacenter.name=Datacenter
clustermap.host.name=localhost
clustermap.writable.partition.min.replica.count=1

# helix property store
# helix.property.store.zk.client.connect.string=localhost:2182
Expand Down

0 comments on commit 3f023a8

Please sign in to comment.