Scala sbt console (launching ammonite shell): How to Disable debug logging - scala

I am launching the Ammonite shell in sbt console and trying to run spark jobs, I see that logging level is Debug and it's printing out all debug level loggers which is generating huge amounts of logs and taking forever to complete the job.
14:36:14.331 [run-main-0] DEBUG org.apache.http.wire - >> "Content-Type: application/octet-stream[\r][\n]"
14:36:14.331 [run-main-0] DEBUG org.apache.http.wire - >> "Connection: Keep-Alive[\r][\n]"
14:36:14.331 [run-main-0] DEBUG org.apache.http.wire - >> "[\r][\n]"
14:36:14.331 [run-main-0] DEBUG org.apache.http.headers - >> GET /nlp/resources/DecisionSentence/parenUnigrams.txt HTTP/1.1
14:36:14.331 [run-main-0] DEBUG org.apache.http.headers - >> Host: ravellaw.s3-us-west-2.amazonaws.com
14:36:14.331 [run-main-0] DEBUG org.apache.http.headers - >> X-Amz-Date: 20160209T223614Z
Following are the settings I tried to disable Debug level logging but I still see debug level loggers
Added in build.sbt:
showSuccess := false
logLevel in console := Level.Warn
logLevel in run := Level.Warn
Tried to invoke sbt console using warn:
sbt --warn console
Tried setting following in sbt console:
System.setProperty("log4j.logger.org.apache.http.wire", "WARN")
System.setProperty("log4j.logger.org.apache.http.headers", "WARN")
System.setProperty("log4j.logger.org.apache.http.content", "WARN")
edited /spark/conf/log4j.properties and changed line form
log4j.rootCategory=INFO, console
to
log4j.rootCategory=WARN, console
Unfortunately after all these changes I still see debug level logging.

Solved my problem running these in repl
import ch.qos.logback.classic.Logger
import org.slf4j.LoggerFactory
import ch.qos.logback.classic.Level
val root = LoggerFactory.getLogger("org.apache.http.wire").asInstanceOf[Logger]
root.setLevel(Level.WARN)

Related

Error: Class path contains multiple SLF4J bindings

While this does seem to be a common issue, I have looked and tried many fixes for sbt and this dependency issue without success.
Setup is a simple query to hive from scala using the run command within IntelliJ. The command is using JDBC to connect to hive.
val sql = s"select * from ${tableName} where user_id = '1'";
val res = stmt.executeQuery(sql);
Here are my Imports:
import java.sql.{SQLException, Connection, DriverManager, ResultSet, Statement}
import scala.collection.mutable.ArrayBuffer
//import scala.io.{BufferedSource, Source}
import scala.language.postfixOps
//import scala.util.matching.Regex
//import java.sql.ResultSetMetaData
The sbt file is as follows:
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.13.8"
lazy val scriptClasspath = Seq("*")
lazy val root = (project in file("."))
.settings(
name := "RevProject_1",
libraryDependencies += "org.apache.hive" % "hive-jdbc" % "3.1.2",
)
Now for the errors as displayed in IntelliJ Terminal:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/samps/AppData/Local/Coursier/Cache/v1/https/repo1.maven.org/maven2/ch/qos/logback/logback-classic/1.0.9/logback-classic-1.0.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/samps/AppData/Local/Coursier/Cache/v1/https/repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j-impl/2.10.0/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/samps/AppData/Local/Coursier/Cache/v1/https/repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.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 [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
09:58:04.460 [main] DEBUG org.apache.hive.jdbc.Utils - Resolved authority: localhost:10000
09:58:04.553 [main] DEBUG o.a.thrift.transport.TSaslTransport - opening transport org.apache.thrift.transport.TSaslClientTransport#6279cee3
09:58:04.556 [main] DEBUG o.a.t.transport.TSaslClientTransport - Sending mechanism name PLAIN and initial response of length 10
09:58:04.559 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: Writing message with status START and payload length 5
09:58:04.559 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: Writing message with status COMPLETE and payload length 10
09:58:04.559 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: Start message handled
09:58:04.559 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: Main negotiation loop complete
09:58:04.559 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: SASL Client receiving last message
09:58:04.673 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: Received message with status COMPLETE and payload length 0
09:58:04.697 [main] DEBUG o.a.thrift.transport.TSaslTransport - writing data length: 147
09:58:04.831 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: reading data length: 169
09:58:04.920 [main] DEBUG o.a.thrift.transport.TSaslTransport - writing data length: 161
09:58:05.466 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: reading data length: 109
09:58:05.471 [main] DEBUG o.a.h.j.l.InPlaceUpdateStream$EventNotifier - progress bar is complete
09:58:05.474 [main] DEBUG o.a.thrift.transport.TSaslTransport - writing data length: 104
09:58:05.506 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: reading data length: 144
09:58:05.515 [main] DEBUG o.a.h.j.l.InPlaceUpdateStream$EventNotifier - progress bar is complete
09:58:05.520 [main] DEBUG o.a.thrift.transport.TSaslTransport - writing data length: 102
09:58:05.522 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: reading data length: 386
List(user_info.user_id, user_info.age, user_info.gender, user_info.occupation, user_info.zip_code)
________________________________
09:58:05.715 [main] DEBUG o.a.h.j.l.InPlaceUpdateStream$EventNotifier - progress bar is complete
09:58:05.715 [main] DEBUG o.a.h.j.l.InPlaceUpdateStream$EventNotifier - progress bar is complete
09:58:05.718 [main] DEBUG o.a.thrift.transport.TSaslTransport - writing data length: 112
09:58:05.747 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: reading data length: 211
09:58:05.794 [main] DEBUG o.a.h.j.l.InPlaceUpdateStream$EventNotifier - progress bar is complete
09:58:05.794 [main] DEBUG o.a.h.j.l.InPlaceUpdateStream$EventNotifier - progress bar is complete
09:58:05.794 [main] DEBUG o.a.thrift.transport.TSaslTransport - writing data length: 112
09:58:05.796 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: reading data length: 180
List(1, 24, M, technician, 85711)
09:58:05.800 [main] DEBUG o.a.thrift.transport.TSaslTransport - writing data length: 83
09:58:05.835 [main] DEBUG o.a.thrift.transport.TSaslTransport - CLIENT: reading data length: 40
And if done through CLI in Windows 10:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/samps/IdeaProjects/RevProject_1/target/bg-jobs/sbt_c6e37a9e/target/0d623873/496b60b1/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/samps/IdeaProjects/RevProject_1/target/bg-jobs/sbt_c6e37a9e/target/ca4cb403/8c0ceb42/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/samps/IdeaProjects/RevProject_1/target/bg-jobs/sbt_c6e37a9e/target/a36b2584/d39b8363/logback-classic-1.0.9.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.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging.
List(user_info.user_id, user_info.age, user_info.gender, user_info.occupation, user_info.zip_code)
________________________________
List(1, 24, M, technician, 85711)
I have tried the following:
Excluding the dependency in sbt using:
libraryDependencies += "group" % "artifactId/name" % "version" exclude("group", "artifactId/name")
libraryDependencies += "org.apache.logging.log4j" % "log4j-slf4j-impl" % "2.10.0" exclude("org.apache.logging.log4j", "log4j-slf4j-impl")
I am not sure if there are any errors in the previous code. If so let me know.
I have attempted to locate a POM.xml and an IVY file in my project. Unfortunately I have been unable to locate them. I have read through many of the answers for this issue within this site and run into the scenario where it is not applicable due to using Scala/sbt or lack of direction for someone of my skill level to learn how to properly implement the fix.
to further view the project files you can see them at:
https://github.com/sampss/RevProject_1
Any assistance with resolving this issue is greatly appreciated.

Liquibase stopped working after moving from 3.6.3 to 3.8.7 or 3.10.2

I was using liquibase 3.6.3 and everything worked fine but today I've moved to 3.10.2 and suddenly I can't run any database updates. The only thing which is in the log file I've pasted below.
We run on DB2 for IBM i.
We use power shell scripts and bat scripts and if we run them outside of the liquibase, everything works fine but when those scripts get called from liquibase after the upgrade, it hangs on the last line from below log.
liquibase.log exist.
Liquibase found.
10:42:16.338 [main] DEBUG l.integration.commandline.Main - Custom logging config found, not going to modify
10:42:16.373 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/liquibase.jar!/liquibase.build.properties as liquibase.build.properties
10:42:16.378 [main] INFO l.integration.commandline.Main -
Starting Liquibase at Mon, 24 Aug 2020 10:42:16 CEST (version 3.10.2 #22 built at Mon Jul 27 04:21:02 UTC 2020)
10:42:16.392 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/liquibase.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.393 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/commons-cli-1.4.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.393 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/h2-1.4.200.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.394 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/jaxb-api-2.3.0.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.394 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/jaxb-core-2.3.0.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.395 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/jaxb-impl-2.3.0.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.396 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/logback-classic-1.2.3.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.397 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/logback-core-1.2.3.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.397 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/slf4j-api-1.7.25.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.398 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/slf4j-api-1.7.28.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.398 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/snakeyaml-1.18.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.398 [main] DEBUG l.r.ClassLoaderResourceAccessor - Opening jar:file:/C:/ProgramData/chocolatey/lib/liquibase/content/lib/snakeyaml-1.24.jar!/META-INF/MANIFEST.MF as META-INF/MANIFEST.MF
10:42:16.403 [main] DEBUG l.servicelocator.ServiceLocator - ServiceLocator.findClasses for liquibase.license.LicenseService
10:42:16.403 [main] DEBUG l.servicelocator.ServiceLocator - ServiceLocator finding classes matching interface liquibase.license.LicenseService
10:42:16.403 [main] DEBUG l.s.DefaultPackageScanClassResolver - Searching for implementations of liquibase.license.LicenseService in packages: [liquibase.change, liquibase.command, liquibase.changelog, liquibase.database, liquibase.parser, liquibase.precondition, liquibase.datatype, liquibase.serializer, liquibase.sqlgenerator, liquibase.executor, liquibase.snapshot, liquibase.logging, liquibase.diff, liquibase.structure, liquibase.structurecompare, liquibase.lockservice, liquibase.sdk.database, liquibase.ext, liquibase.pro, com.datical.liquibase]```

eclipse "Run As --> Groovy Script" gives me the DEBUG info

I right click the groovy class and select Run As --> Groovy Script. I can't find my println output in the console, but I get all these DEBUG messages. How can I get rid of them?
10:57:10.687 [main] DEBUG org.apache.http.wire - >> "[\r][\n]"
10:57:10.687 [main] DEBUG org.apache.http.headers - >> GET /nexus/service/local/repositories/snapshots/content/devops/README.md/1.0.0-rc1/ HTTP/1.1
10:57:10.687 [main] DEBUG org.apache.http.headers - >> Accept: application/xml, text/xml, application/xhtml+xml, application/atom+xml
10:57:10.687 [main] DEBUG org.apache.http.headers - >> Host: localhost:8060

Connection of Titan graph DB to Gephi through Gremlin console

I am trying to connect to gephi(0.9.1) through gremlin console. I have a graph in my titan database. I also have the streaming server enabled in my gephi. And through gremlin i executed the following commands:
:plugin use tinkerpop.gephi
g = TinkerFactory.createModern()
:remote connect tinkerpop.gephi
All these worked fine.But when i ran the last command:
:> g
I got the following error:
==>tinkergraph[vertices:6 edges:6]
16:07:16.783 [main] DEBUG groovyx.net.http.HTTPBuilder - POST http://localhost:8080/workspace0?format=JSON&operation=updateGraph
16:07:16.801 [main] DEBUG o.a.h.i.c.BasicClientConnectionManager - Get connection for route {}->http://localhost:8080
16:07:16.809 [main] DEBUG o.a.h.i.c.DefaultClientConnectionOperator - Connecting to localhost:8080
16:07:16.817 [main] DEBUG o.a.h.c.protocol.RequestAddCookies - CookieSpec selected: default
16:07:16.822 [main] DEBUG o.a.h.c.protocol.RequestAuthCache - Auth cache not set in the context
16:07:16.826 [main] DEBUG o.a.h.c.p.RequestTargetAuthentication - Target auth state: UNCHALLENGED
16:07:16.831 [main] DEBUG o.a.h.c.p.RequestProxyAuthentication - Proxy auth state: UNCHALLENGED
16:07:16.836 [main] DEBUG o.a.h.impl.client.DefaultHttpClient - Attempt 1 to execute request
16:07:16.840 [main] DEBUG o.a.h.i.conn.DefaultClientConnection - Sending request: POST /workspace0?format=JSON&operation=updateGraph HTTP/1.1
16:07:16.850 [main] DEBUG org.apache.http.wire - >> "POST /workspace0?format=JSON&operation=updateGraph HTTP/1.1[\r][\n ]"
16:07:16.862 [main] DEBUG org.apache.http.wire - >> "Accept: */*[\r][\n]"
16:07:16.868 [main] DEBUG org.apache.http.wire - >> "Content-Length: 23[\r][\n]"
16:07:16.873 [main] DEBUG org.apache.http.wire - >> "Content-Type: application/json[\r][\n]"
16:07:16.879 [main] DEBUG org.apache.http.wire - >> "Host: localhost:8080[\r][\n]"
16:07:16.885 [main] DEBUG org.apache.http.wire - >> "Connection: Keep-Alive[\r][\n]"
16:07:16.890 [main] DEBUG org.apache.http.wire - >> "[\r][\n]"
16:07:16.895 [main] DEBUG org.apache.http.headers - >> POST /workspace0?format=JSON&operation=updateGraph HTTP/1.1
16:07:16.900 [main] DEBUG org.apache.http.headers - >> Accept: */*
16:07:16.905 [main] DEBUG org.apache.http.headers - >> Content-Length: 23
16:07:16.910 [main] DEBUG org.apache.http.headers - >> Content-Type: application/json
16:07:16.915 [main] DEBUG org.apache.http.headers - >> Host: localhost:8080
16:07:16.920 [main] DEBUG org.apache.http.headers - >> Connection: Keep-Alive
16:07:16.925 [main] DEBUG org.apache.http.wire - >> "{"dn":{"filter":"ALL"}}"
16:07:16.935 [main] DEBUG org.apache.http.wire - << "HTTP/1.1 404 Not Found[\r][\n]"
16:07:16.940 [main] DEBUG org.apache.http.wire - << "Cache-Control: must-revalidate,no-cache,no-store[\r][\n]"
16:07:16.945 [main] DEBUG org.apache.http.wire - << "Content-Type: text/html;charset=ISO-8859-1[\r][\n]"
16:07:16.951 [main] DEBUG org.apache.http.wire - << "Content-Length: 1277[\r][\n]"
16:07:16.956 [main] DEBUG org.apache.http.wire - << "Server: Jetty(8.1.17.v20150415)[\r][\n]"
16:07:16.961 [main] DEBUG org.apache.http.wire - << "[\r][\n]"
16:07:16.966 [main] DEBUG o.a.h.i.conn.DefaultClientConnection - Receiving response: HTTP/1.1 404 Not Found
16:07:16.971 [main] DEBUG org.apache.http.headers - << HTTP/1.1 404 Not Found
16:07:16.978 [main] DEBUG org.apache.http.headers - << Cache-Control: must-revalidate,no-cache,no-store
16:07:16.984 [main] DEBUG org.apache.http.headers - << Content-Type: text/html;charset=ISO-8859-1
16:07:16.991 [main] DEBUG org.apache.http.headers - << Content-Length: 1277
16:07:16.996 [main] DEBUG org.apache.http.headers - << Server: Jetty(8.1.17.v20150415)
16:07:17.002 [main] DEBUG o.a.h.impl.client.DefaultHttpClient - Connection can be kept alive indefinitely
16:07:17.010 [main] DEBUG groovyx.net.http.HTTPBuilder - Response code: 404; found handler: org.codehaus.groovy.runtime. MethodClosure#2c768ada
16:07:17.020 [main] DEBUG org.apache.http.wire - << "<html>[\n]"
16:07:17.024 [main] DEBUG org.apache.http.wire - << "<head>[\n]"
16:07:17.029 [main] DEBUG org.apache.http.wire - << "<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>[\n]"
16:07:17.039 [main] DEBUG org.apache.http.wire - << "<title>Error 404 Not Found</title>[\n]"
16:07:17.043 [main] DEBUG org.apache.http.wire - << "</head>[\n]"
16:07:17.048 [main] DEBUG org.apache.http.wire - << "<body>[\n]"
16:07:17.052 [main] DEBUG org.apache.http.wire - << "<h2>HTTP ERROR: 404</h2>[\n]"
16:07:17.057 [main] DEBUG org.apache.http.wire - << "<p>Problem accessing /workspace0. Reason:[\n]"
16:07:17.062 [main] DEBUG org.apache.http.wire - << "<pre> Not Found</pre></p>[\n]"
16:07:17.068 [main] DEBUG org.apache.http.wire - << "<hr /><i><small>Powered by Jetty://</small></i>[\n]"
16:07:17.074 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.079 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.083 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.088 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.093 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.098 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.103 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.107 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.111 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.116 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.121 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.125 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.130 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.136 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.141 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.146 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.151 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.156 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.160 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.165 [main] DEBUG org.apache.http.wire - << " [\n]"
16:07:17.170 [main] DEBUG org.apache.http.wire - << "</body>[\n]"
16:07:17.174 [main] DEBUG org.apache.http.wire - << "</html>[\n]"
16:07:17.178 [main] DEBUG o.a.h.i.c.BasicClientConnectionManager - Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl#c1fca2a
16:07:17.188 [main] DEBUG o.a.h.i.c.BasicClientConnectionManager - Connection can be kept alive indefinitely Not Found
Display stack trace? [yN]
And also often i get:
15:38:20.276 [Finalizer] DEBUG o.a.h.i.conn.DefaultClientConnection - Connection 0.0.0.0:60710<->127.0.0.1:8080 closed
I have checked for the opened ports, and i also found that 8080 port is opened.
Note that the Gephi Plugin was only recently made compliant with Gephi 0.9.x as of TinkerPop 3.2.1-SNAPSHOT a few days ago. As you are using Titan 1.0, I would guess that you have an older version. I would recommend going back to Gephi 0.8.x beta if you want everything to work seamlessly.
All that said, you might yet be able to get it to work. The default workspace that Gephi provides is no longer "workspace0" - it is now indexed starting at "1". You can change the workspace used by the Gremlin remote by doing:
:remote config workspace workspace1
That should allow the data to be sent to Gephi and it should show in the "laboratory" pane. You may yet have problems with the visualization. I found that while fixing this problem that not auto-setting the "size", "x" and "y" properties to "sensible" things seemed to prevent the visualization pane from displaying the vertices and edges. I think that you would need to add those properties to any graph you wanted to push across to Gephi. The patch I did set the size to "10" and the x/y were set to a random float - setting them all to to zero/zero (i.e. the same positions) did not work.
All of the above workaround instructions are mostly for informational purposes. That's probably a lot of extra work that you don't need to do when downloading Gephi 0.8.x is a pretty easy course of action.

Akka AssociationError - LAN address vs localhost

I am new to akka and am trying to get a sample to work between multiple JVMs. I am working from the example shown here but am encountering a problem. At the end of the log below, you can see that there in an AssociationError, saying connection to 127.0.0.1:2552 was refused.
Earlier in the log (15:35:24.543), I see that remoting was started, and is listening on my LAN address (which I have shown as WWW.XXX.YYY.ZZZ), rather than on localhost.
15:35:24.307 [RandomOrgSystem-akka.actor.default-dispatcher-2] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
15:35:24.319 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG akka.event.EventStream - logger log1-Slf4jLogger started
15:35:24.320 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://RandomOrgSystem/system/UnhandledMessageForwarder#883086044]
15:35:24.320 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG akka.event.EventStream - Default Loggers started
15:35:24.320 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG a.e.LoggingBus$$anonfun$startDefaultLoggers$2$$anon$1 - started (akka.event.LoggingBus$$anonfun$startDefaultLoggers$2$$anon$1#45de530a)
15:35:24.325 [RandomOrgSystem-akka.actor.default-dispatcher-4] DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://RandomOrgSystem/system/remoting-terminator#-1650950485]
15:35:24.339 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG a.r.RemoteActorRefProvider$RemotingTerminator - started (akka.remote.RemoteActorRefProvider$RemotingTerminator#4f27077b)
15:35:24.355 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://RandomOrgSystem/system/transports#300935452]
15:35:24.356 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG a.r.Remoting$TransportSupervisor - started (akka.remote.Remoting$TransportSupervisor#2cf5006)
15:35:24.359 [RandomOrgSystem-akka.actor.default-dispatcher-3] INFO Remoting - Starting remoting
15:35:24.364 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://RandomOrgSystem/system/endpointManager#-594071077]
15:35:24.364 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG a.r.RemoteActorRefProvider$RemotingTerminator - now monitoring Actor[akka://RandomOrgSystem/system]
15:35:24.373 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG akka.remote.EndpointManager - started (akka.remote.EndpointManager#7ad99f4a)
15:35:24.534 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG a.r.Remoting$TransportSupervisor - now supervising Actor[akka://RandomOrgSystem/system/transports/akkaprotocolmanager.tcp0#-2000194523]
15:35:24.537 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG a.r.transport.AkkaProtocolManager - started (akka.remote.transport.AkkaProtocolManager#749cd006)
15:35:24.543 [RandomOrgSystem-akka.actor.default-dispatcher-5] INFO Remoting - Remoting started; listening on addresses :[akka.tcp://RandomOrgSystem#WWW.XXX.YYY.ZZZ:2552]
15:35:24.545 [RandomOrgSystem-akka.actor.default-dispatcher-2] INFO Remoting - Remoting now listens on addresses: [akka.tcp://RandomOrgSystem#WWW.XXX.YYY.ZZZ:2552]
15:35:24.548 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://RandomOrgSystem/system/remote-watcher#-245042739]
15:35:24.549 [RandomOrgSystem-akka.actor.default-dispatcher-2] DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://RandomOrgSystem/system/remote-deployment-watcher#1846115901]
15:35:24.550 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG akka.remote.RemoteDeploymentWatcher - started (akka.remote.RemoteDeploymentWatcher#730a4a32)
15:35:24.550 [RandomOrgSystem-akka.actor.default-dispatcher-4] DEBUG a.a.LocalActorRefProvider$SystemGuardian - now supervising Actor[akka://RandomOrgSystem/system/deadLetterListener#1544852868]
15:35:24.552 [RandomOrgSystem-akka.actor.default-dispatcher-4] DEBUG akka.event.DeadLetterListener - started (akka.event.DeadLetterListener#79a422d9)
15:35:24.555 [RandomOrgSystem-akka.actor.default-dispatcher-5] DEBUG akka.remote.RemoteWatcher - started (akka.remote.RemoteWatcher#4aa0560e)
15:35:24.555 [RandomOrgSystem-akka.actor.default-dispatcher-5] INFO akka.actor.ActorSystemImpl - Started
15:35:24.559 [RandomOrgSystem-akka.actor.default-dispatcher-5] DEBUG a.a.LocalActorRefProvider$Guardian - now supervising Actor[akka://RandomOrgSystem/user/buffer#-400157724]
15:35:24.570 [RandomOrgSystem-akka.actor.default-dispatcher-5] DEBUG RemoteActorRefProvider - [akka://RandomOrgSystem/] Instantiating Remote Actor [akka.tcp://RandomOrgSystem#127.0.0.1:2552/remote/akka.tcp/RandomOrgSystem#WWW.XXX.YYY.ZZZ:2552/user/buffer/client]
15:35:24.581 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG akka.remote.RemoteWatcher - Watching: [akka://RandomOrgSystem/system/remote-deployment-watcher -> akka.tcp://RandomOrgSystem#127.0.0.1:2552/remote/akka.tcp/RandomOrgSystem#WWW.XXX.YYY.ZZZ:2552/user/buffer/client]
15:35:24.582 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG c.b.n.akka.demo.RandomOrgBuffer - started (com.blogspot.nurkiewicz.akka.demo.RandomOrgBuffer#3012db7c)
15:35:24.584 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG akka.remote.EndpointManager - now supervising Actor[akka://RandomOrgSystem/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FRandomOrgSystem%40127.0.0.1%3A2552-0#-126941538]
15:35:24.594 [RandomOrgSystem-akka.actor.default-dispatcher-5] DEBUG a.remote.ReliableDeliverySupervisor - started (akka.remote.ReliableDeliverySupervisor#b8235a1)
15:35:24.594 [RandomOrgSystem-akka.actor.default-dispatcher-5] DEBUG a.remote.ReliableDeliverySupervisor - now monitoring Actor[akka://RandomOrgSystem/system/endpointManager#-594071077]
15:35:24.594 [RandomOrgSystem-akka.actor.default-dispatcher-5] DEBUG a.remote.ReliableDeliverySupervisor - now supervising Actor[akka://RandomOrgSystem/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FRandomOrgSystem%40127.0.0.1%3A2552-0/endpointWriter#118183353]
15:35:24.606 [RandomOrgSystem-akka.actor.default-dispatcher-5] DEBUG akka.remote.EndpointWriter - started (akka.remote.EndpointWriter#4b069693)
15:35:24.606 [RandomOrgSystem-akka.actor.default-dispatcher-5] DEBUG akka.remote.EndpointWriter - now monitoring Actor[akka://RandomOrgSystem/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FRandomOrgSystem%40127.0.0.1%3A2552-0#-126941538]
15:35:24.616 [RandomOrgSystem-akka.actor.default-dispatcher-3] DEBUG a.r.transport.AkkaProtocolManager - now supervising Actor[akka://RandomOrgSystem/system/transports/akkaprotocolmanager.tcp0/akkaProtocol-tcp%3A%2F%2FRandomOrgSystem%40127.0.0.1%3A2552-1#-1464884820]
15:35:24.631 [RandomOrgSystem-akka.actor.default-dispatcher-4] DEBUG a.r.transport.ProtocolStateActor - started (akka.remote.transport.ProtocolStateActor#620b5b80)
15:35:24.656 [RandomOrgSystem-akka.actor.default-dispatcher-5] ERROR akka.remote.EndpointWriter - AssociationError [akka.tcp://RandomOrgSystem#WWW.XXX.YYY.ZZZ:2552] -> [akka.tcp://RandomOrgSystem#127.0.0.1:2552]: Error [Association failed with [akka.tcp://RandomOrgSystem#127.0.0.1:2552]] [
akka.remote.EndpointAssociationException: Association failed with [akka.tcp://RandomOrgSystem#127.0.0.1:2552]
Caused by: akka.remote.transport.netty.NettyTransport$$anonfun$associate$1$$anon$2: Connection refused: /127.0.0.1:2552
]
I'd like it if the remoting started on the localhost address so that I don't have to reconfigure when I change IP address. My application.conf contains:
akka {
log-config-on-start = off
loggers = ["akka.event.slf4j.Slf4jLogger"]
loglevel = "DEBUG"
actor {
provider = "akka.remote.RemoteActorRefProvider"
debug {
receive = on
autoreceive = on
lifecycle = on
unhandled = on
}
deployment {
/buffer/client {
remote = "akka.tcp://RandomOrgSystem#127.0.0.1:2552"
}
}
}
remote {
transport = "akka.remote.netty.NettyRemoteTransport"
log-sent-messages = on
netty {
hostname = "127.0.0.1"
}
}
}
Thanks,
Tom
Try changing your remote section to:
remote {
transport = "akka.remote.netty.NettyRemoteTransport"
log-sent-messages = on
netty.tcp {
hostname = "127.0.0.1"
}
}
Because the config is wrong and you are not specifying the hostname property, it defaults to using the host ip. Setting up the config as above will allow you to use the loopback instead.