actionml / chef-pio Goto Github PK
View Code? Open in Web Editor NEWPredictionIO chef cookbook
License: Other
PredictionIO chef cookbook
License: Other
I'm facing the following issue right after cloning:
[user@server chef-pio]$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
/opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler (LoadError)
from /opt/vagrant/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/util/env.rb:1:in `<top (required)>'
from /home/user/.vagrant.d/gems/2.2.5/gems/vagrant-berkshelf-5.1.1/lib/vagrant-berkshelf/helpers.rb:62:in `berks'
from /home/user/.vagrant.d/gems/2.2.5/gems/vagrant-berkshelf-5.1.1/lib/vagrant-berkshelf/action/check.rb:33:in `berkshelf_version_check!'
from /home/user/.vagrant.d/gems/2.2.5/gems/vagrant-berkshelf-5.1.1/lib/vagrant-berkshelf/action/check.rb:16:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builtin/call.rb:53:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/warden.rb:34:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/builder.rb:116:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `block in run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/util/busy.rb:19:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/action/runner.rb:66:in `run'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/machine.rb:225:in `action_raw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/machine.rb:200:in `block in action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/environment.rb:567:in `lock'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/machine.rb:186:in `call'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/machine.rb:186:in `action'
from /opt/vagrant/embedded/gems/gems/vagrant-1.9.0/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run
Any idea?
Fragment from /var/log/upstart/eventserver.log
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /pio.log (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
at org.apache.predictionio.workflow.WorkflowUtils$.modifyLogging(WorkflowUtils.scala:278)
at org.apache.predictionio.tools.console.Console$$anonfun$main$1.apply(Console.scala:615)
at org.apache.predictionio.tools.console.Console$$anonfun$main$1.apply(Console.scala:611)
at scala.Option.map(Option.scala:145)
at org.apache.predictionio.tools.console.Console$.main(Console.scala:611)
at org.apache.predictionio.tools.console.Console.main(Console.scala)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/data/PredictionIO-0.11.0-incubating/lib/spark/pio-data-hdfs-assembly-0.11.0-incubating.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/data/PredictionIO-0.11.0-incubating/lib/pio-assembly-0.11.0-incubating.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
05:47:27,058 [INFO] [Management$] Creating Event Server at 0.0.0.0:7070
05:47:29,356 [INFO] [HttpListener] Bound to /0.0.0.0:7070
Hi,
I'm trying to deploy to AWS Opsworks, but I'm getting this error. I don't know if I'm missing some custon configuration. Please, help.
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Use bundle show [gemname]
to see where a bundled gem is installed.
undefined method `compact' for #Hash:0x00000004d69b48
/var/chef/runs/60755da9-807a-4051-8e50-e675233d49b5/local-mode-cache/cache/cookbooks/pio/libraries/helpers.rb:85:in apache_vars' /var/chef/runs/60755da9-807a-4051-8e50-e675233d49b5/local-mode-cache/cache/cookbooks/pio/recipes/default.rb:123:in
block in from_file'
/var/chef/runs/60755da9-807a-4051-8e50-e675233d49b5/local-mode-cache/cache/cookbooks/pio/recipes/default.rb:116:in from_file' /var/chef/runs/60755da9-807a-4051-8e50-e675233d49b5/local-mode-cache/cache/cookbooks/pio/recipes/aio.rb:18:in
from_file'
/var/chef/runs/60755da9-807a-4051-8e50-e675233d49b5/local-mode-cache/cache/cookbooks/pio/libraries/helpers.rb:
78: pio_home: pio_home
79: }
80: end
81:
82: # Apache vars: contains substituted appdir if app has been passed.
83: def apache_vars(**args)
84: args[:appdir] = ::File.join(localdir, args[:app])
85>> default_variables.merge(args).compact
86: end
87:
88: def provision_only?
89: node['pio']['provision_only']
90: end
91:
92: def service_actions
93: provision_only? ? [:enable] : [:enable, :start]
94: end
x86_64-linux
[2018-06-08T20:09:19+00:00] ERROR: Running exception handlers
[2018-06-08T20:09:19+00:00] ERROR: Exception handlers complete
[2018-06-08T20:09:19+00:00] FATAL: Stacktrace dumped to /var/chef/runs/60755da9-807a-4051-8e50-e675233d49b5/local-mode-cache/cache/chef-stacktrace.out
[2018-06-08T20:09:19+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-06-08T20:09:19+00:00] ERROR: undefined method `compact' for #Hash:0x00000004d69b48
[2018-06-08T20:09:19+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Cookbook tries to install HBase from here http://apache.mirrors.tds.net/hbase/1.2.5/hbase-1.2.5-bin.tar.gz. It seems that apache mirrors no longer have that version, instead they have 1.2.6.
Hi, I would like install prediction IO for the first time to test run it. I see from the readme that, AIO is good for testing. But how to install predictionIO AIO in my system with this repo? Can someone help?
Installing this cookbook to AWS OpsWorks Ubuntu 14.04 fails because Ubuntu's OpenJDK doesn't configure ca-certificates by default and sbt build tries to fetch stuff via HTTPS. Using HTTPS will fail because sbt can't verify server's certificate due missing ca-certificates configuration.
See https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty
Doing this prior running pio:aio
recipe seems to fix problem (at least cookbook installed without errors).
sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure
Error in OpsWorks console.
[2017-06-05T07:48:19+00:00] ERROR: Running exception handlers
[2017-06-05T07:48:19+00:00] ERROR: Exception handlers complete
[2017-06-05T07:48:19+00:00] FATAL: Stacktrace dumped to /var/chef/runs/9563f0e3-3aa8-4944-bbb6-29272eee440a/local-mode-cache/cache/chef-stacktrace.out
[2017-06-05T07:48:19+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-06-05T07:48:19+00:00] ERROR: execute[make-distribution.sh] (pio::pio_git_install line 40) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of bash make-distribution.sh ----
STDOUT: Building binary distribution for PredictionIO 0.11.0-incubating...
Getting org.scala-sbt sbt 0.13.13 ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.13.13
==== local: tried
/home/aml/.ivy2/local/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
-- artifact org.scala-sbt#sbt;0.13.13!sbt.jar:
/home/aml/.ivy2/local/org.scala-sbt/sbt/0.13.13/jars/sbt.jar
==== Maven Central: tried
https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.13/sbt-0.13.13.pom
-- artifact org.scala-sbt#sbt;0.13.13!sbt.jar:
https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.13/sbt-0.13.13.jar
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
==== sbt-ivy-snapshots: tried
https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.13.13: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.13/sbt-0.13.13.pom
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.13/sbt-0.13.13.jar
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/0.13.13/ivys/ivy.xml
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.13.13: not found
Error during sbt execution: Error retrieving required libraries
(see /home/aml/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.13
STDERR: + sbt/sbt clean
mkdir: cannot create directory ‘/root’: Permission denied
Downloading sbt launcher for 0.13.13:
From http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.13/sbt-launch.jar
To /tmp/sbt_extras_launchers.aGemMA/0.13.13/sbt-launch.jar
---- End output of bash make-distribution.sh ----
Ran bash make-distribution.sh returned 1
[2017-06-05T07:48:19+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
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.