maxfedotov / puppet-clickhouse Goto Github PK
View Code? Open in Web Editor NEWClickhouse puppet module
Clickhouse puppet module
Hi,
I have got the error message
Error: org.jruby.exceptions.LoadError: (LoadError) no such file to load -- xmlsimple
Hello Max,
Could you, please, prompt me where I can pin version for clickhouse-common-static?
I wouldn't upgrade Clickhouse.
Hi Max,
I use
node /^clickhouse-([0-9][0-9][0-9])-([0-9][0-9])\.test\.me$/ {
include 'clickhouse::repo'
}
But the repository does not create
Debian 9
Thank you,
Could you help me, please, and provide more details about how to use database?
If I use this
clickhouse_database { 'my_database':
ensure => 'present',
}
I have got the error message
Error: Could not prefetch clickhouse_database provider 'clickhouse': Execution of '/usr/bin/clickhouse-client -c /root/.clickhouse-client/config.xml -q show databases' returned 1: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = File not found: /root/.clickhouse-client/config.xml
Error: Failed to apply catalog: Execution of '/usr/bin/clickhouse-client -c /root/.clickhouse-client/config.xml -q show databases' returned 1: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = File not found: /root/.clickhouse-client/config.xml
after setup new puppet server we receive errors in /var/log/messages like:
/opt/puppetlabs/server/data/puppetserver/jruby-gems/gems/rexml-3.2.5/lib/rexml/parsers/baseparser.rb:108: warning: already initialized constant DEFAULT_ENTITIES
https://github.com/maik/xml-simple FAQ
Answer: The reason for this is, that you’re using XmlSimple explicitly in a rails app. XmlSimple is part of rails (you can find it in ./actionpack-1.12.5/lib/action_controller/vendor/xml_simple.rb). Unfortunately, the library is named "xml_simple.rb" and not "xmlsimple.rb". Ruby’s "require" prevents you from loading a library two times and it does so by checking if a file name occurs more than once. In your case somewhere in the rails framework "require 'xml_simple'" is performed and you run "require 'xmlsimple'" afterwards. Hence, the library is loaded twice and all constants are redefined.
A solution is to only require xml-simple unless XmlSimple has not been defined already.
Also the worst thing is:
ERROR [qtp222747617-2185] [puppetserver] Puppet Could not autoload puppet/parser/functions/clickhouse_config: load error: rexml/document -- java.lang.StackOverflowError: null
ERROR [qtp222747617-2185] [puppetserver] Puppet Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/clickhouse_config: load error: rexml/document -- java.lang.StackOverflowError: null (file: /etc/puppetlabs/code/environments/production/modules/cluster/manifests/user.pp, line: 149, column: 24) (file: /etc/puppetlabs/code/environments/production/modules/cluster/manifests/init.pp, line: 31) on node xxxx.be.core.pw
currently we downgraded xml-simple to 1.1.8, but I suppose that require 'xmlsimple' should be changed to something different in lib/puppet/parser/functions/clickhouse_config.rb
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.