Skip to content

Instantly share code, notes, and snippets.

View erickrause's full-sized avatar

Eric Krause erickrause

View GitHub Profile
@ushu
ushu / S3 buckets copy.md
Created October 29, 2013 16:12
Copy between S3 buckets w/ different accounts

This is a mix between two sources:

basically the first resource is great but didn't work for me: I had to remove the trailing "/*" in the resource string to make it work. I also noticed that setting the policy on the source bucket was sufficient. In the end these are the exact steps I followed to copy data between two buckets on two accounts

Basically the idea there is:

  • we allowe the destination account to read the source bucket (in the console for the source account)
  • we log as the destination and start the copy
@krisleech
krisleech / solution.md
Created February 20, 2017 18:54
`Cannot find Elasticsearch launch script from [elasticsearch]` Error

Error: No such file or directory - Cannot find Elasticsearch launch script from [elasticsearch] -- did you pass a correct path? When using ElasticSearch gems.

Ubuntu elasticsearch package changed, so no longer does which elasticsearch return anything, which means the gem can not find the binary.

Solution: suppy command option to ES to tell it where the binary is, either use the existing binary, mine was at /usr/shared/elasticsearch/bin/elasticsearch, or symlink the same binary to somewhere in $PATH or install a new version to $PATH.

To install a new version download and untar to somewhere in $PATH, e.g. ~/bin You can find downloads such as this one: https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.3.tar.gz