Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"flintrock configure" issue #150

Closed
trefoilai opened this issue Sep 26, 2016 · 2 comments
Closed

"flintrock configure" issue #150

trefoilai opened this issue Sep 26, 2016 · 2 comments

Comments

@trefoilai
Copy link

trefoilai commented Sep 26, 2016

Dear Nicholas,

I am trying to use flintrock to launch a spark cluster for data science.I am walking trough the following tutorial "https://alexioannides.com/2016/08/18/building-a-data-science-platform-for-rd-part-2-deploying-spark-on-aws-using-flintrock/ ". I installed flitrock using the "pip3 install flintrock".
I checked if flintrock is well installed using the commando's flintrock --help.This returned

Usage: flintrock [OPTIONS] COMMAND [ARGS]...

  Flintrock

  A command-line tool for launching Apache Spark clusters.

Options:
  --config TEXT     Path to a Flintrock configuration file.
  --provider [ec2]
  --version         Show the version and exit.
  --help            Show this message and exit.

Commands:
  add-slaves     Add slaves to an existing cluster.
  configure      Configure Flintrock's defaults.
  copy-file      Copy a local file up to a cluster.
  describe       Describe an existing cluster.
  destroy        Destroy a cluster.
  launch         Launch a new cluster.
  login          Login to the master of an existing cluster.
  remove-slaves  Remove slaves from an existing cluster.
  run-command    Run a shell command on a cluster.
  start          Start an existing, stopped cluster.
  stop           Stop an existing, running cluster.

Which may means that everything is installed as expected. Then I wanted to configure the cluster and I ran the commando " flintrock configure" . This is what this returned

hzmarrou@ip-172-31-42-206:~$ flintrock configure
hzmarrou@ip-172-31-42-206:~$ Warning: unknown mime-type for "/home/hzmarrou/.config/flintrock/config.yaml" -- using "application/octet-stream"
Error: no "view" mailcap rules found for type "application/octet-stream"
WARNING: You don't seem to have any mimeinfo.cache files.
Try running the update-desktop-database command. If you
don't have this command you should install the
desktop-file-utils package. This package is available from
http://freedesktop.org/wiki/Software_2fdesktop_2dfile_2dutils
Can't call method "get_value" on an undefined value at /usr/bin/mimeopen line 162.
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: lynx: not found
Error occured while reset 800b: errno=5
xdg-open: no method available for opening '/home/hzmarrou/.config/flintrock/config.yaml'

I have no clue what does that means.

Could you please help me figure out what the problem is?

Best regards

  • Flintrock version: 0.6.0
  • Python version: 3.4
  • OS: Ubuntu
@nchammas
Copy link
Owner

hzmarrou@ip-172-31-42-206:~$ Warning: unknown mime-type for "/home/hzmarrou/.config/flintrock/config.yaml" -- using "application/octet-stream"

It looks like Flintrock can't find an editor on your system configured to open YAML files.

You can get around this easily by manually opening /home/hzmarrou/.config/flintrock/config.yaml with your favorite editor. That's all flintrock configure does anyway, after it creates that file with a bunch of defaults.

I think one thing Flintrock can do better here is to automatically give the advice I've just given if it detects that launching the editor failed.

@nchammas
Copy link
Owner

@trefoilai - Did my suggestion resolve your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants