You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Stu Hood (JIRA)" <ji...@apache.org> on 2011/02/05 01:05:30 UTC
[jira] Created: (AVRO-758) avro-tools jar contains log4j config
avro-tools jar contains log4j config
------------------------------------
Key: AVRO-758
URL: https://issues.apache.org/jira/browse/AVRO-758
Project: Avro
Issue Type: Bug
Reporter: Stu Hood
Priority: Minor
The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (AVRO-758) avro-tools jar contains log4j config
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stu Hood updated AVRO-758:
--------------------------
Component/s: java
Affects Version/s: 1.5.0
Fix Version/s: 1.5.0
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (AVRO-758) avro-tools jar contains log4j config
Posted by "Scott Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Carey closed AVRO-758.
----------------------------
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.6.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Scott Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992234#comment-12992234 ]
Scott Carey commented on AVRO-758:
----------------------------------
Since the tools jar is intended to run stand-alone, it has to have an slf4j binding in it.
If you intend to use avro in a project, you'll want to include the component avro jars depending on what features you need. This way you can control the dependencies and anything common that might collide like slf4j. The tools-jar isn't going to work in the classpath of most projects, since it has all of the dependencies inside of it.
The slf4j-log4j12-1.6.1.jar in your classpath is not from avro, and may not be compatible with Avro's 1.5.x slf4j. Usually slf4j happily functions with only a warning when you have multiple jars, but I haven't tried mixing 1.5.x and 1.6.x.
We definitely should get rid of the junk that hadoop-jar is pulling into toolsjar: log4j, its shell scripts, and other stuff.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AVRO-758) avro-tools jar contains log4j config
Posted by "Scott Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058063#comment-13058063 ]
Scott Carey commented on AVRO-758:
----------------------------------
There were two issues as I understand it:
* We needed the avro-tools-nodeps.jar for those that want to use the main methods there without all the bundled dependencies.
* Either we need an ant/maven task/plugin for compiling avdl --> avpr, or users need to use the ant/maven/API that takes avdl --> Java class.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.2
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (AVRO-758) avro-tools jar contains log4j config
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Cutting updated AVRO-758:
------------------------------
Fix Version/s: (was: 1.5.0)
1.5.1
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.1
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AVRO-758) avro-tools jar contains log4j config
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058033#comment-13058033 ]
Doug Cutting commented on AVRO-758:
-----------------------------------
Was this fixed by AVRO-791, which provides the tool classes without bundled dependencies?
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.2
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AVRO-758) avro-tools jar contains log4j config
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060185#comment-13060185 ]
Doug Cutting commented on AVRO-758:
-----------------------------------
+1 That sounds like a good plan to me.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.6.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Scott Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997121#comment-12997121 ]
Scott Carey commented on AVRO-758:
----------------------------------
We need to make the classes in the tools module available outside of the shaded jar. I ran into another case where that was necessary when experimenting with the thrift-protobuf comapre benchmark with Avro 1.5.0. They're using make, and calling the main method to compile. Using the whole tools jar steps on the jackson stuff in the classpath.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AVRO-758) avro-tools jar contains log4j config
Posted by "Scott Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060174#comment-13060174 ]
Scott Carey commented on AVRO-758:
----------------------------------
Looks like we already have a ticket for the avdl --> avpr maven task: AVRO-572
Perhaps we should expand that one to include ant tasks and close this one?
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.6.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (AVRO-758) avro-tools jar contains
log4j config
Posted by "Scott Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992234#comment-12992234 ]
Scott Carey edited comment on AVRO-758 at 2/8/11 11:36 PM:
-----------------------------------------------------------
Since the tools jar is intended to run stand-alone, it has to have an slf4j binding in it.
If you intend to use avro in a project, you'll want to include the component avro jars depending on what features you need. This way you can control the dependencies and anything common that might collide like slf4j. The tools-jar isn't going to work in the classpath of most projects, since it has all of the dependencies inside of it.
The slf4j-log4j12-1.6.1.jar in your classpath is not from avro, and may not be compatible with Avro's 1.5.x slf4j. Usually slf4j happily functions with only a warning when you have multiple jars, but I haven't tried mixing 1.5.x and 1.6.x.
We definitely should get rid of the junk that hadoop-jar is pulling into toolsjar: log4j.properties, its shell scripts, and other stuff.
was (Author: scott_carey):
Since the tools jar is intended to run stand-alone, it has to have an slf4j binding in it.
If you intend to use avro in a project, you'll want to include the component avro jars depending on what features you need. This way you can control the dependencies and anything common that might collide like slf4j. The tools-jar isn't going to work in the classpath of most projects, since it has all of the dependencies inside of it.
The slf4j-log4j12-1.6.1.jar in your classpath is not from avro, and may not be compatible with Avro's 1.5.x slf4j. Usually slf4j happily functions with only a warning when you have multiple jars, but I haven't tried mixing 1.5.x and 1.6.x.
We definitely should get rid of the junk that hadoop-jar is pulling into toolsjar: log4j, its shell scripts, and other stuff.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AVRO-758) avro-tools jar contains log4j config
Posted by "Scott Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Carey resolved AVRO-758.
------------------------------
Resolution: Duplicate
The problems identified in this ticket are covered in AVRO-572 and AVRO-791.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.6.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AVRO-758) avro-tools jar contains log4j config
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Cutting updated AVRO-758:
------------------------------
Fix Version/s: (was: 1.5.2)
1.6.0
We now have the -nodeps jar. Should we add a new issue for the Ant & Maven IDL tasks?
I don't think this should block 1.5.2.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.6.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Scott Carey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992623#comment-12992623 ]
Scott Carey commented on AVRO-758:
----------------------------------
Yes, the Main method and all the Tool classes are only in the tools.jar. Is your project calling those directly? Or executing the tools stand-alone?
The intention of avro-tools.jar is to provide command-line utilities and use it like "java -jar avro-tools.jar". Everything it does is accessible via public API's in other projects -- for example compiling schemas/protocols.
We could add 'avro-tools-nodeps.jar' for users who want to access org/apache/avro/tool/Main.java from code inside another project.
Can you describe your use case in more detail Stu?
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992317#comment-12992317 ]
Stu Hood commented on AVRO-758:
-------------------------------
Re-reading your comment, it sounds like tools.jar should always contain all of its dependencies, so I didn't run the wrong target.
Perhaps the compile vs run classpaths will be the way to go.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992680#comment-12992680 ]
Stu Hood commented on AVRO-758:
-------------------------------
Ah, you're right... I missed a step. We're calling org.apache.avro.tool.Main in order to generate a JSON protocol from an IDL file, then we're calling the compiler via the ant task: org.apache.avro.specific.ProtocolTask. See lines 245 through 300 here (but ignore the reference to Hadoop, which is for our Hadoop integration, rather than Avro's): https://github.com/apache/cassandra/blob/trunk/build.xml#L245
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992312#comment-12992312 ]
Stu Hood commented on AVRO-758:
-------------------------------
> If you intend to use avro in a project, you'll want to include
> the component avro jars depending on what features you need.
It appears that the compiler jar has a dependency on the tools jar: this is why we needed to pull them both in. I can probably subdivide our classpath to include the tools jar only at compile time, but this is suboptimal.
> The slf4j-log4j12-1.6.1.jar in your classpath is not from avro
Correct: the Cassandra project is using slf4j for its logging, so adding the Avro tools jar gave this warning, and resulted in our runtime log settings being ignored.
----
Whether the tools jar needs to be split a bit more so that the compiler jar doesn't depend on it, or whether we can remove the embedded slf4j dependency is my question.
Also, I might have just run the wrong mvn target: I assume when Avro goes into the maven repos, it isn't in this super-jar form.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992444#comment-12992444 ]
Stu Hood commented on AVRO-758:
-------------------------------
Without the tools jar I see the following failure:
{noformat}avro-interface-generate-hadoop:
[echo] Generating Avro hadoop code...
[mkdir] Created dir: /Users/stuhood/src/cassandra/working/src/gen-java/org/apache/cassandra/hadoop
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/avro/tool/Main
[java] Caused by: java.lang.ClassNotFoundException: org.apache.avro.tool.Main
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] Java Result: 1
avro-interface-generate-internode:
[echo] Generating Avro internode code...
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/avro/tool/Main
[java] Caused by: java.lang.ClassNotFoundException: org.apache.avro.tool.Main
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] Java Result: 1{noformat}
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992695#comment-12992695 ]
Doug Cutting commented on AVRO-758:
-----------------------------------
Sounds to me like we should add an Ant task that converts an .avdl file to a .avpr file. Then you wouldn't need to use the command-line tool here.
AVRO-572 is related too, for Maven users.
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992217#comment-12992217 ]
Stu Hood commented on AVRO-758:
-------------------------------
Actually, removing the log4j.properties has not fixed the problem: it looks like including SLF4J in the tools jar is the culprit.
{noformat}SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/stuhood/src/cassandra/working/lib/avro-tools-1.5.0-SNAPSHOT~r1068142+AVRO-757.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/stuhood/src/cassandra/working/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.{noformat}
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992446#comment-12992446 ]
Stu Hood commented on AVRO-758:
-------------------------------
This is with SVN r1068142
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AVRO-758) avro-tools jar contains log4j config
Posted by "Holger Hoffstätte (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992439#comment-12992439 ]
Holger Hoffstätte commented on AVRO-758:
----------------------------------------
Stu, the compiler module definitely does not depend on tools. Any chance you are looking at an old svn rev?
> avro-tools jar contains log4j config
> ------------------------------------
>
> Key: AVRO-758
> URL: https://issues.apache.org/jira/browse/AVRO-758
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.5.0
> Reporter: Stu Hood
> Priority: Minor
> Fix For: 1.5.0
>
>
> The avro-tools jar generated on trunk contains a log4j config that can override the defaults of projects that include it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira