Skip to content

Commit 3f023a8

Browse files
authored
Fix some quickstart issues (#1388)
- 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
1 parent 042bcd5 commit 3f023a8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The log will be available at `logs/frontend.log`. Alternately, you can change th
4545
##### Step 4: Interact with Ambry !
4646
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.
4747
###### POST
48-
$ 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
48+
$ 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
4949
HTTP/1.1 201 Created
5050
Location: AmbryID
5151
Content-Length: 0

config/frontend.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ router.delete.success.target=1
2525
clustermap.cluster.name=Ambry_Dev
2626
clustermap.datacenter.name=Datacenter
2727
clustermap.host.name=localhost
28+
clustermap.writable.partition.min.replica.count=1
2829

2930
# helix property store
3031
# helix.property.store.zk.client.connect.string=localhost:2182

0 commit comments

Comments
 (0)