pilhuhn / hawkfx

Hawkular explorer written in (J)Ruby with a JavaFX frontend.
Apache License 2.0
14 stars 10 forks source link

Unable to run hawkfx on Fedora 25 #36

Open zak-hassan opened 7 years ago

zak-hassan commented 7 years ago

Hi,

I have openshift origin latest master. Although this tool is more focused on hawkular. I saw this blog post using this tool. I attempted this before and it seemed to work

[zhassan@localhost hawkfx]$ gem install bundler
Successfully installed bundler-1.14.6
1 gem installed
[zhassan@localhost hawkfx]$ bundle install 
Using rake 10.5.0
Using concurrent-ruby 1.0.5 (java)
Using i18n 0.8.1
Using minitest 5.10.1
Using thread_safe 0.3.6 (java)
Using public_suffix 2.0.5
Using ast 2.3.0
Using safe_yaml 1.0.4
Using diff-lcs 1.3
Using unf 0.1.4 (java)
Using event_emitter 0.2.5
Using hashdiff 0.3.2
Using mime-types-data 3.2016.0521
Using netrc 0.11.0
Using websocket 1.2.4
Using jruby-openssl 0.9.20 (java)
Using jrubyfx-fxmlloader 0.4.1 (java)
Using polyglot 0.3.5
Using powerpack 0.1.1
Using rainbow 2.2.1
Using rspec-support 3.5.0
Using ruby-progressbar 1.8.1
Using unicode-display_width 1.1.3
Using shoulda-context 1.2.2
Using simple-websocket-vcr 0.0.4
Using vcr 3.0.3
Using yard 0.9.8
Using bundler 1.14.6
Using tzinfo 1.2.2
Using addressable 2.5.0
Using parser 2.4.0.0
Using crack 0.4.3
Using domain_name 0.5.20170223
Using mime-types 3.1
Using websocket-client-simple 0.3.0
Using jrubyfx 1.2.0 (java)
Using treetop 1.6.8
Using rspec-core 3.5.4
Using rspec-expectations 3.5.0
Using rspec-mocks 3.5.0
Using activesupport 5.0.2
Using rubocop 0.41.2
Using webmock 2.3.2
Using http-cookie 1.0.3
Using rspec 3.5.0
Using shoulda-matchers 2.8.0
Using rest-client 2.0.1
Using shoulda 3.5.0
Using hawkular-client 2.8.0
Bundle complete! 16 Gemfile dependencies, 49 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
[zhassan@localhost hawkfx]$ jruby -G -S hawkfx.rb
JavaFX runtime not found.  Please install Java 7u6 or newer or set environment variable JFX_DIR to the folder that contains jfxrt.jar 
If you have Java 7u6 or later, this is a bug. Please report to the issue tracker on github. Include your OS version, 32/64bit, and architecture (x86, ARM, PPC, etc)
zak-hassan commented 7 years ago

By the way I have java8 jdk and i set the JFX_DIR directory

pilhuhn commented 7 years ago

Are you on OpenJDK? They seem not to deliver the JavaFX jar.

pilhuhn commented 7 years ago

@Jiri-Kremser I think you are using OracleJDK with F25?

jkremser commented 7 years ago

nope, I use HotSpot from Oracle

jkremser commented 7 years ago

I have openshift origin latest master.

@zmhassan if your intention is to explore what is stored in openshift metrics, this tool wont help you. It's for exploring the hawkular inventory, and inventory is not part of the openshift metrics.

zak-hassan commented 7 years ago

@Jiri-Kremser I know there is the rest api that I can query. Wondering if I can query cassandra for more info?

zak-hassan commented 7 years ago

Just wanted to confirm that the data is stored somewhere in hawkular cassandra db

pilhuhn commented 7 years ago

If you use openshift mode or metrics-only HawkFX will list all metrics for the current tenant. In Hawkular(-services) mode there is a menu item "list metrics" to do so.