You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by Miguel Pereira <mi...@gmail.com> on 2013/08/12 19:39:40 UTC
proxy
Hey guys,
Looking for some help to set up the proxy. proxy readme points to ../readme
for building and installing with the proxy server but ../readme doesn't say
anything about the proxy :)
my goal is to prototype a small python app that calls the accumulo api
using the proxy. if anyone has done this I would appreciate a brief list of
steps prereqs :)
Cheers,
Miguel
Re: proxy
Posted by Jason Trost <ja...@gmail.com>.
Miguel,
It works with python 2.7. It likely works with other version too, I
haven't tested it though. I don't think thrift generates different code
based on the python version.
What version of python are you using?
--Jason
On Wed, Aug 21, 2013 at 9:13 AM, Miguel Pereira
<mi...@gmail.com>wrote:
> Thanks guys,
>
> I will look into that Jason, is your code compatible with a specific
> version of python? Or maybe a better question is does thrift generate
> different bindings based on python version and other things..?
>
>
> On Mon, Aug 19, 2013 at 10:48 PM, Jason Trost <ja...@gmail.com>
> wrote:
>
> > You may want to give pyaccumulo a try if you are using python. I designed
> > it to be a little more python friendly. It uses the python thrift code
> and
> > the proxy.
> >
> > github.com/accumulo/pyaccumulo
> >
> > Feedback and pull requests are welcome.
> >
> > --Jason
> >
> > sent from my DROID
> > On Aug 19, 2013 11:01 AM, "Eric Newton" <er...@gmail.com> wrote:
> >
> > > You can just build at the top level. Ensure that the thrift command is
> > in
> > > your path:
> > >
> > > $ thrift --version
> > > Thrift version 0.9.0
> > >
> > > Build accumulo:
> > >
> > > $ mvn -Pthrift -DskipTests package
> > >
> > > Start accumulo:
> > >
> > > $ ./bin/start-all.sh
> > >
> > > Start the proxy:
> > >
> > > $ ./bin/accumulo proxy -p proxy/proxy.properties
> > >
> > > Run a python script:
> > >
> > > $ PYTHONPATH=proxy/target/gen-py python
> > > proxy/examples/python/TestClient.py
> > >
> > > -Eric
> > >
> > >
> > > On Mon, Aug 12, 2013 at 1:39 PM, Miguel Pereira
> > > <mi...@gmail.com>wrote:
> > >
> > > > Hey guys,
> > > >
> > > > Looking for some help to set up the proxy. proxy readme points to
> > > ../readme
> > > > for building and installing with the proxy server but ../readme
> doesn't
> > > say
> > > > anything about the proxy :)
> > > >
> > > > my goal is to prototype a small python app that calls the accumulo
> api
> > > > using the proxy. if anyone has done this I would appreciate a brief
> > list
> > > of
> > > > steps prereqs :)
> > > >
> > > > Cheers,
> > > > Miguel
> > > >
> > >
> >
>
Re: proxy
Posted by Miguel Pereira <mi...@gmail.com>.
Thanks guys,
I will look into that Jason, is your code compatible with a specific
version of python? Or maybe a better question is does thrift generate
different bindings based on python version and other things..?
On Mon, Aug 19, 2013 at 10:48 PM, Jason Trost <ja...@gmail.com> wrote:
> You may want to give pyaccumulo a try if you are using python. I designed
> it to be a little more python friendly. It uses the python thrift code and
> the proxy.
>
> github.com/accumulo/pyaccumulo
>
> Feedback and pull requests are welcome.
>
> --Jason
>
> sent from my DROID
> On Aug 19, 2013 11:01 AM, "Eric Newton" <er...@gmail.com> wrote:
>
> > You can just build at the top level. Ensure that the thrift command is
> in
> > your path:
> >
> > $ thrift --version
> > Thrift version 0.9.0
> >
> > Build accumulo:
> >
> > $ mvn -Pthrift -DskipTests package
> >
> > Start accumulo:
> >
> > $ ./bin/start-all.sh
> >
> > Start the proxy:
> >
> > $ ./bin/accumulo proxy -p proxy/proxy.properties
> >
> > Run a python script:
> >
> > $ PYTHONPATH=proxy/target/gen-py python
> > proxy/examples/python/TestClient.py
> >
> > -Eric
> >
> >
> > On Mon, Aug 12, 2013 at 1:39 PM, Miguel Pereira
> > <mi...@gmail.com>wrote:
> >
> > > Hey guys,
> > >
> > > Looking for some help to set up the proxy. proxy readme points to
> > ../readme
> > > for building and installing with the proxy server but ../readme doesn't
> > say
> > > anything about the proxy :)
> > >
> > > my goal is to prototype a small python app that calls the accumulo api
> > > using the proxy. if anyone has done this I would appreciate a brief
> list
> > of
> > > steps prereqs :)
> > >
> > > Cheers,
> > > Miguel
> > >
> >
>
Re: proxy
Posted by Jason Trost <ja...@gmail.com>.
You may want to give pyaccumulo a try if you are using python. I designed
it to be a little more python friendly. It uses the python thrift code and
the proxy.
github.com/accumulo/pyaccumulo
Feedback and pull requests are welcome.
--Jason
sent from my DROID
On Aug 19, 2013 11:01 AM, "Eric Newton" <er...@gmail.com> wrote:
> You can just build at the top level. Ensure that the thrift command is in
> your path:
>
> $ thrift --version
> Thrift version 0.9.0
>
> Build accumulo:
>
> $ mvn -Pthrift -DskipTests package
>
> Start accumulo:
>
> $ ./bin/start-all.sh
>
> Start the proxy:
>
> $ ./bin/accumulo proxy -p proxy/proxy.properties
>
> Run a python script:
>
> $ PYTHONPATH=proxy/target/gen-py python
> proxy/examples/python/TestClient.py
>
> -Eric
>
>
> On Mon, Aug 12, 2013 at 1:39 PM, Miguel Pereira
> <mi...@gmail.com>wrote:
>
> > Hey guys,
> >
> > Looking for some help to set up the proxy. proxy readme points to
> ../readme
> > for building and installing with the proxy server but ../readme doesn't
> say
> > anything about the proxy :)
> >
> > my goal is to prototype a small python app that calls the accumulo api
> > using the proxy. if anyone has done this I would appreciate a brief list
> of
> > steps prereqs :)
> >
> > Cheers,
> > Miguel
> >
>
Re: proxy
Posted by Eric Newton <er...@gmail.com>.
You can just build at the top level. Ensure that the thrift command is in
your path:
$ thrift --version
Thrift version 0.9.0
Build accumulo:
$ mvn -Pthrift -DskipTests package
Start accumulo:
$ ./bin/start-all.sh
Start the proxy:
$ ./bin/accumulo proxy -p proxy/proxy.properties
Run a python script:
$ PYTHONPATH=proxy/target/gen-py python proxy/examples/python/TestClient.py
-Eric
On Mon, Aug 12, 2013 at 1:39 PM, Miguel Pereira
<mi...@gmail.com>wrote:
> Hey guys,
>
> Looking for some help to set up the proxy. proxy readme points to ../readme
> for building and installing with the proxy server but ../readme doesn't say
> anything about the proxy :)
>
> my goal is to prototype a small python app that calls the accumulo api
> using the proxy. if anyone has done this I would appreciate a brief list of
> steps prereqs :)
>
> Cheers,
> Miguel
>