Member since
06-21-2018
27
Posts
0
Kudos Received
0
Solutions
07-05-2018
11:28 AM
0favorite
I am trying to execute this command: aymenstien@aymenstien-VPCEH2Q1E:/usr/share/logstash$ ./bin/logstash -f /home/aymenstien/Bureau/fb.conf here is the config file: input {
file {
path => "/home/aymenstien/Bureau/mydoc/*"
start_position => beginning
codec => json
sincedb_path => "/home/aymenstien/Bureau/mydoc/postj1.sincedb"
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
hosts => "http://localhost:9200"
index => "fbpost"
document_type => "post"
timeout => 30
workers => 1
}
} and I am getting the result of execution below: aymenstien@aymenstien-VPCEH2Q1E:/usr/share/logstash$ ./bin/logstash -f /home/aymenstien/Bureau/fb.conf
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
[FATAL] 2018-07-05 12:47:56.496 [main] runner - An unexpected error occurred! {:error=>#<ArgumentError: Path "/usr/share/logstash/data" must be a writable directory. It is not writable.>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:448:in `validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:230:in `validate_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:141:in `block in validate_all'", "org/jruby/RubyHash.java:1343:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:140:in `validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:279:in `execute'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:238:in `run'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/usr/share/logstash/lib/bootstrap/environment.rb:73:in `<main>'"]}
[ERROR] 2018-07-05 12:47:56.554 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit Can anyone help me?
... View more
03-15-2018
09:08 PM
# mysql --host=hadoop --port=3306 -u admin -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on 'hadoop' (111)
... View more
03-15-2018
03:36 PM
@Geoffrey Shelton Okot yes the ambari port is 8080, I want to connect to mysql service.
... View more
03-15-2018
03:26 PM
I am trying to connect to this url :http://hadoop:3306 but its not working, can someone explain to me.
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Sqoop
03-09-2018
12:04 AM
I get this error: 18/03/09 01:01:51 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: No columns to generate for ClassWriter
at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1659)
at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:488)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:615)
at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:225)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
at org.apache.sqoop.Sqoop.main(Sqoop.java:243)
... View more
03-08-2018
11:55 PM
everything is ok, may be i have to add the port to jdbc:mysql://hadoop:3306 right ?
... View more
03-08-2018
11:50 PM
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
... View more
03-08-2018
11:48 PM
#su -l sqoop -c "sqoop import --connect jdbc:mysql://hadoop/Testdb --table widgets -m 4 --username root --password CHANGEME --driver com.mysql.jdbc.Driver" com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
... View more
03-08-2018
11:38 PM
$ cp -f /usr/share/java/mysql-connector-java.jar /usr/hdp/current/sqoop-client/lib/ cp: '/usr/share/java/mysql-connector-java.jar' and '/usr/hdp/current/sqoop-client/lib/mysql-connector-java.jar' are the same file
... View more
03-08-2018
11:24 PM
$ls -ltr /usr/share/java/mysql-connector-java-5.1.17.jar ls: cannot access '/usr/share/java/mysql-connector-java-5.1.17.jar': No such file or directory
... View more