See: https://issues.apache.org/jira/browse/KNOX-713
On Fri, May 13, 2016 at 7:42 AM, larry mccay <[email protected]> wrote: > Hey Chris - > > I see that the Request class is indeed package private. > It is quite possible that all of my previous java use of these classes > were in tests that were in the same package. > > Thank you for bringing this up - it needs to be fixed! > > I will file a JIRA for this and add it for 0.9.1 bug release that we are > targeting for 6/10th. > If you would like to contribute a patch for it, I would be happy to help > get it in. > > Otherwise, we will get to it for the 0.9.1 release. > > In the meantime, you could try changing the package to be the same and see > if it works. > > thanks again! > > --larry > > > On Fri, May 13, 2016 at 7:27 AM, larry mccay <[email protected]> wrote: > >> Thank you, Chris! >> I'll have a look. >> >> --larry >> >> On Fri, May 13, 2016 at 3:20 AM, chris snow <[email protected]> wrote: >> >>> Hi Larry, >>> >>> I've created an example knox java project here: >>> https://github.com/snowch/knox-java-example >>> >>> On the readme you can see an icon with the build status on the travis >>> build tool. You can click on the build error icon and navigate to the >>> compilation error in travis. Here is example travis output showing the >>> compile error: >>> https://travis-ci.org/snowch/knox-java-example/jobs/129921364 >>> >>> Many thanks, >>> >>> Chris >>> >>> On 13 May 2016 at 03:05, larry mccay <[email protected]> wrote: >>> >>>> Hi Chris - >>>> >>>> Sorry for the delayed response. I somehow missed this until now. >>>> >>>> This should work fine. There is some difference between groovy scripts >>>> and using the classes directly for sure. Perhaps there is a bug there as >>>> well. >>>> >>>> Can you provide an example class that I can reproduce with? >>>> >>>> Thanks! >>>> >>>> --larry >>>> On May 12, 2016 11:47 AM, "chris snow" <[email protected]> wrote: >>>> >>>> Is knox cli supported from java? >>>> >>>> /Users/snowch/Repos/knox-java-example/src/main/java/net/christophersnow/TestKnox.java:12: >>>> error: from(String) in Request is defined in an inaccessible class or >>>> interface >>>> String text = Hdfs.get( session ).from( "test" >>>> ).now().getString(); >>>> >>>> I'm hitting issues because Get.Request is protected. >>>> >>>> >>> >> >
