The avro-tools is a utility, self-executable jar that is not meant to
be included in Java projects - please use the regular avro modules in
your project instead; or use the no-dependencies version that is also
published.

On Wed, Oct 8, 2014 at 6:24 AM, Urvishsinh Mahida (JIRA)
<[email protected]> wrote:
>
>     [ 
> https://issues.apache.org/jira/browse/AVRO-1453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162879#comment-14162879
>  ]
>
> Urvishsinh Mahida commented on AVRO-1453:
> -----------------------------------------
>
> I am getting following error as the hadoop version 1 from avro tools is over 
> shadowing my projects hadoop 2 version
> cannot find symbol
> symbol  : method isDirectory()
> location: class org.apache.hadoop.fs.FileStatus
>
>> Release version of avro-tools compiled against hadoop2
>> ------------------------------------------------------
>>
>>                 Key: AVRO-1453
>>                 URL: https://issues.apache.org/jira/browse/AVRO-1453
>>             Project: Avro
>>          Issue Type: Improvement
>>          Components: java
>>    Affects Versions: 1.7.6
>>         Environment: CDH4.4.0
>>            Reporter: Andrew Ash
>>            Assignee: Doug Cutting
>>             Fix For: 1.7.8
>>
>>         Attachments: AVRO-1453.patch
>>
>>
>> When attempting to use avro-tools-1.7.6.jar against my CDH4.4.0 cluster I 
>> get this error:
>> {code}
>> Feb 06, 2014 9:57:13 PM org.apache.hadoop.util.NativeCodeLoader <clinit>
>> WARNING: Unable to load native-hadoop library for your platform... using 
>> builtin-java classes where applicable
>> Exception in thread "main" org.apache.hadoop.ipc.RemoteException: Server IPC 
>> version 7 cannot communicate with client version 4
>>         at org.apache.hadoop.ipc.Client.call(Client.java:1066)
>>         at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:225)
>>         at com.sun.proxy.$Proxy6.getProtocolVersion(Unknown Source)
>>         at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:396)
>>         at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:379)
>>         at 
>> org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:118)
>>         at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:222)
>>         at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:187)
>>         at 
>> org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:89)
>>         at 
>> org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1328)
>>         at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:65)
>>         at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1346)
>>         at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:244)
>>         at org.apache.hadoop.fs.Path.getFileSystem(Path.java:187)
>>         at org.apache.avro.tool.Util.openFromFS(Util.java:88)
>>         at org.apache.avro.tool.Util.fileOrStdin(Util.java:60)
>>         at org.apache.avro.tool.ConcatTool.run(ConcatTool.java:69)
>>         at org.apache.avro.tool.Main.run(Main.java:84)
>>         at org.apache.avro.tool.Main.main(Main.java:73)
>> {code}
>> I believe that the version released on maven is compiled against hadoop 1, 
>> and I'm running hadoop 2.  Can we release a version that's compiled against 
>> hadoop2?
>> https://search.maven.org/#artifactdetails%7Corg.apache.avro%7Cavro-tools%7C1.7.6%7Cjar
>> Thanks!
>> Andrew
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)



-- 
Harsh J

Reply via email to