af83 / desi Goto Github PK
View Code? Open in Web Editor NEWDesi (Developper ElasticSearch Installer) is very simple tool to quickly set up an Elastic Search local install for development purposes.
License: MIT License
Desi (Developper ElasticSearch Installer) is very simple tool to quickly set up an Elastic Search local install for development purposes.
License: MIT License
Just installed desi 0.2.7, then tried to install elasticsearch and it fails. Here's the info: Ruby 1.9.3p194, on Mac OS X 10.8.2. Running "desi releases" just outputs "Here are the 5 latest releases" with no releases listed. Trying "desi install" and "desi install 0.20.2" both output the same thing:
fetching release
/Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/desi-0.2.7/lib/desi/downloader.rb:19:in `download!': undefined method `archive_name' for nil:NilClass (NoMethodError)
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/desi-0.2.7/lib/desi/runner.rb:49:in `install'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/runner_library.rb:12:in `block (3 levels) in delegate_runner_methods'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/scientist.rb:87:in `call'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/scientist.rb:87:in `block (2 levels) in redefine_command_block'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/scientist.rb:123:in `call'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/scientist.rb:123:in `call_original_command'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/scientist.rb:115:in `during_analyze'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/scientist.rb:107:in `analyze'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/scientist.rb:86:in `block in redefine_command_block'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson.rb:79:in `full_invoke'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/bare_runner.rb:42:in `execute_command'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/runner.rb:35:in `execute_command'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/runner.rb:31:in `execute'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/boson-1.2.4/lib/boson/runner.rb:26:in `start'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/gems/desi-0.2.7/bin/desi:7:in `<top (required)>'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/bin/desi:19:in `load'
from /Users/mason/.rvm/gems/ruby-1.9.3-p194@app/bin/desi:19:in `<main>'
Thanks.
Currently desi doesn't work if it is behind a proxy
hint: http://www.jethrocarr.com/2014/08/14/ruby-nethttp-proxies/
Hi,
desi releases
should list the 1.0.0
version in its default configuration (limited to 5 releases). Currently, it appears at the bottom of desi releases -l 0
.
It should :
The fact that desi install
fails when the installed version of ElasticSearch is already the last one makes it hard to make scripts and repeatable installs.
Use case: running desi install
from puppet/chef/ansible
Version 1.0.0
should be considered as the latest one, not RC or Beta releases.
ES download pages seem to be a redirect now, it does not play nice with desi:
* fetching release elasticsearch-2.1.0
* fetching release elasticsearch-2.1.0 from https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-2.1.0.tar.gz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
/Users/octplane/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/cocaine-0.5.8/lib/cocaine/command_line.rb:91:in `run': Command 'tar --keep-newer-files -C '/Users/octplane/elasticsearch' -zxf '/Users/octplane/elasticsearch/elasticsearch-2.1.0.tar.gz'' returned 1. Expected 0 (Cocaine::ExitStatusError)
RubyGems.org doesn't report a license for your gem. This is because it is not specified in the gemspec of your last release.
via e.g.
spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']
Including a license in your gemspec is an easy way for rubygems.org and other tools to check how your gem is licensed. As you can imagine, scanning your repository for a LICENSE file or parsing the README, and then attempting to identify the license or licenses is much more difficult and more error prone. So, even for projects that already specify a license, including a license in your gemspec is a good practice. See, for example, how rubygems.org uses the gemspec to display the rails gem license.
There is even a License Finder gem to help companies/individuals ensure all gems they use meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough issue that even Bundler now generates gems with a default 'MIT' license.
I hope you'll consider specifying a license in your gemspec. If not, please just close the issue with a nice message. In either case, I'll follow up. Thanks for your time!
Appendix:
If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file), GitHub has created a license picker tool. Code without a license specified defaults to 'All rights reserved'-- denying others all rights to use of the code.
Here's a list of the license names I've found and their frequencies
p.s. In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :). See the previous link or my blog post about this project for more information.
The name change from elasticsearch to elastic broke the tags retrieval, and therefore desi releases
(not to mention desi install
).
Hi,
with desi 0.6.4 and ES 1.0.0, when I run desi start
, it starts in foreground, but it should be in background I think: there is an option for telling it to start in foreground (-f), but none for starting in background.
ElasticSearch can be run with the -f
flag, which keeps the process running in the foreground. It would be nice if I could have a way to pass it from desi start
, or another command-line switch...
It is very handy to have start an ES process from e.g. foreman, which expects the process started in a Procfile to remain in the front.
desi --version
should yield the current version. ๐
A brand new data
directory is created for each new install. It should be moved out and shared between each install using symlinks.
I'm trying to install the latest version of ES with desi, but it fails:
~/af83/tlhub [notifications*] % desi releases
Here are the 5 latest releases
- elasticsearch-0.19.11 (2012-10-23T23:36:24Z)
- elasticsearch-0.20.0.RC1 (2012-10-21T23:41:09Z)
- elasticsearch-0.19.10 (2012-10-01T19:56:46Z)
- elasticsearch-0.19.9 (2012-08-23T11:49:19Z)
- elasticsearch-0.19.8 (2012-07-02T20:06:39Z)
~/af83/tlhub [notifications*] % desi install
* No release specified, will fetch latest.
* fetching release elasticsearch-0.19.11.tar.gz
* fetching release elasticsearch-0.19.11.tar.gz from http://cloud.github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.11.tar.gz
tar (child): \:archive : open impossible: Aucun fichier ou dossier de ce type
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
/home/nono/.rvm/gems/ruby-1.9.3-p0/gems/cocaine-0.4.2/lib/cocaine/command_line.rb:86:in `run': Command 'tar --keep-newer-files -C :extract_dir -zxf :archive' returned 2. Expected 0 (Cocaine::ExitStatusError)
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/desi-0.2.4/lib/desi/installer.rb:56:in `extract!'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/desi-0.2.4/lib/desi/installer.rb:16:in `install!'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/desi-0.2.4/lib/desi/runner.rb:51:in `install'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/runner_library.rb:12:in `block (3 levels) in delegate_runner_methods'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/scientist.rb:87:in `call'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/scientist.rb:87:in `block (2 levels) in redefine_command_block'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/scientist.rb:123:in `call'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/scientist.rb:123:in `call_original_command'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/scientist.rb:115:in `during_analyze'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/scientist.rb:107:in `analyze'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/scientist.rb:86:in `block in redefine_command_block'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson.rb:79:in `full_invoke'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/bare_runner.rb:42:in `execute_command'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/runner.rb:35:in `execute_command'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/runner.rb:31:in `execute'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/boson-1.2.4/lib/boson/runner.rb:26:in `start'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/gems/desi-0.2.4/bin/desi:7:in `<top (required)>'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/bin/desi:19:in `load'
from /home/nono/.rvm/gems/ruby-1.9.3-p0/bin/desi:19:in `<main>'
zsh: exit 1 desi install
Hello,
I didn't have java
installed and i'm having a strange error like:
cocaine-0.4.2/lib/cocaine/command_line.rb:86:in `run': Command '/home/spk/elasticsearch/current/bin/elasticsearch -p :pidfile' returned 1. Expected 0 (Cocaine::ExitStatusError)
Do you think is a good idea to check java installation ?
% desi start -f
ES will be launched in the foreground
/home/nono/.gem/ruby/2.1.2/gems/semantic-1.3.0/lib/semantic/version.rb:8:in `initialize': 1.4.0.Beta1 is not a valid SemVer Version (http://semver.org) (ArgumentError)
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/local_install.rb:30:in `new'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/local_install.rb:30:in `version'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/local_install.rb:48:in `pre_one_zero?'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/local_install.rb:65:in `current_release_is_pre_one_zero?'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/process_manager.rb:272:in `legacy_release?'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/process_manager.rb:243:in `foreground_or_background_flag'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/process_manager.rb:239:in `start_command_options'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/process_manager.rb:234:in `perform_start'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/process_manager.rb:185:in `start_cluster'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/process_manager.rb:55:in `start'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/lib/desi/runner.rb:73:in `start'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/runner_library.rb:12:in `block (3 levels) in delegate_runner_methods'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/scientist.rb:87:in `call'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/scientist.rb:87:in `block (2 levels) in redefine_command_block'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/scientist.rb:123:in `call'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/scientist.rb:123:in `call_original_command'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/scientist.rb:115:in `during_analyze'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/scientist.rb:107:in `analyze'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/scientist.rb:86:in `block in redefine_command_block'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson.rb:79:in `full_invoke'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/bare_runner.rb:42:in `execute_command'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/runner.rb:35:in `execute_command'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/runner.rb:31:in `execute'
from /home/nono/.gem/ruby/2.1.2/gems/boson-1.3.0/lib/boson/runner.rb:26:in `start'
from /home/nono/.gem/ruby/2.1.2/gems/desi-0.6.8/bin/desi:7:in `<top (required)>'
from /home/nono/.gem/ruby/2.1.2/bin/desi:23:in `load'
from /home/nono/.gem/ruby/2.1.2/bin/desi:23:in `<main>'
Release 0.6.5 introduced a silly breaking API change when blindly following the behaviour change of 1.0 ES releases. This is absolutely unnecessary. It should still start in the background by default.
Hi,
it would be nice to have an option for choosing where desi installs ElasticSearch. By default, it's ~/elasticsearch
, but I always want to have less stuff at the root of my home directory.
When I run desi start
, it shows nothing and doesn't return to the shell, even if Elastic Search has really been started.
If I CTRL-C
, ES keeps running and the backtrace is:
^C/home/nono/.rvm/gems/ruby-1.9.3-p125/gems/cocaine-0.4.2/lib/cocaine/command_line.rb:80:in `ensure in run': undefined method `exitstatus' for nil:NilClass (NoMethodError)
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/cocaine-0.4.2/lib/cocaine/command_line.rb:80:in `run'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/desi-0.2.6/lib/desi/process_manager.rb:164:in `start_cluster'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/desi-0.2.6/lib/desi/process_manager.rb:46:in `start'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/desi-0.2.6/lib/desi/runner.rb:57:in `start'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/runner_library.rb:12:in `block (3 levels) in delegate_runner_methods'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/scientist.rb:87:in `call'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/scientist.rb:87:in `block (2 levels) in redefine_command_block'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/scientist.rb:123:in `call'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/scientist.rb:123:in `call_original_command'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/scientist.rb:115:in `during_analyze'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/scientist.rb:107:in `analyze'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/scientist.rb:86:in `block in redefine_command_block'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson.rb:79:in `full_invoke'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/bare_runner.rb:42:in `execute_command'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/runner.rb:35:in `execute_command'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/runner.rb:31:in `execute'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/boson-1.2.4/lib/boson/runner.rb:26:in `start'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/gems/desi-0.2.6/bin/desi:7:in `<top (required)>'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/bin/desi:19:in `load'
from /home/nono/.rvm/gems/ruby-1.9.3-p125/bin/desi:19:in `<main>'
zsh: exit 1 desi start
When running desi indices
, we should be able to see whether an index has aliases or not.
Add a desi log
or desi tail
command that would tail -f
the currently running elasticsearch instance.
Closed indices are not listed by desi indices
. All indices should be listed.
The configuration file should allow a server
entry (with a default of 127.0.0.1:9200
), so that one can use a non-local server without being obliged to specify --host foo
each and every time.
I get an error when desi tries to fetch the latest version of ES.
$ desi install
* No release specified, will fetch latest.
* fetching release elasticsearch-0.19.9.tar.gz
/home/oz/.rvm/gems/ruby-1.9.3-p194/gems/desi-0.2.1/lib/desi/http_client.rb:57:in `match': can't convert URI::HTTP to String (TypeError)
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/desi-0.2.1/lib/desi/http_client.rb:57:in `to_uri'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/desi-0.2.1/lib/desi/http_client.rb:12:in `initialize'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/desi-0.2.1/lib/desi/downloader.rb:14:in `new'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/desi-0.2.1/lib/desi/downloader.rb:14:in `initialize'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/desi-0.2.1/lib/desi/runner.rb:49:in `new'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/desi-0.2.1/lib/desi/runner.rb:49:in `install'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/runner_library.rb:12:in `block (3 levels) in delegate_runner_methods'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/scientist.rb:87:in `call'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/scientist.rb:87:in `block (2 levels) in redefine_command_block'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/scientist.rb:123:in `call'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/scientist.rb:123:in `call_original_command'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/scientist.rb:115:in `during_analyze'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/scientist.rb:107:in `analyze'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/scientist.rb:86:in `block in redefine_command_block'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson.rb:79:in `full_invoke'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/bare_runner.rb:42:in `execute_command'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/runner.rb:35:in `execute_command'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/runner.rb:31:in `execute'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/boson-1.2.4/lib/boson/runner.rb:26:in `start'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/gems/desi-0.2.1/bin/desi:7:in `<top (required)>'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/bin/desi:19:in `load'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/bin/desi:19:in `<main>'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
from /home/oz/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
System (Debian/amd64):
$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
$ gem list desi
*** LOCAL GEMS ***
desi (0.2.1)
Unrelated to this issue, desi install
takes an optional
version/fullname so I tried the following with more errors:
$ desi install 0.19.9 # fails
$ desi install elasticsearch-0.19.9 # fails too
Maybe a quick note in the README about the actual syntax would help, or
if it is a bug, I'll open another issue.
One should be able to switch between multiple ES versions using desi instead of having to create/destroy symlinks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.