This is an automated email from the ASF dual-hosted git repository. domgarguilo pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/accumulo-proxy.git
The following commit(s) were added to refs/heads/main by this push: new 11ec063 Fix ruby and python example clients (#67) 11ec063 is described below commit 11ec063d0129239e4991facbbf4626da7753933c Author: Dom G <domgargu...@apache.org> AuthorDate: Mon Jan 30 14:31:34 2023 -0500 Fix ruby and python example clients (#67) --- src/main/assemble/conf/proxy.properties | 1 + src/main/python/basic_client.py | 2 +- src/main/ruby/client.rb | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/assemble/conf/proxy.properties b/src/main/assemble/conf/proxy.properties index 0e4e94c..5255b56 100644 --- a/src/main/assemble/conf/proxy.properties +++ b/src/main/assemble/conf/proxy.properties @@ -19,6 +19,7 @@ # Port to run proxy on port=42424 +sharedSecret=sharedSecret # Set to true if you wish to use an Mini Accumulo Cluster useMiniAccumulo=false protocolFactory=org.apache.thrift.protocol.TCompactProtocol$Factory diff --git a/src/main/python/basic_client.py b/src/main/python/basic_client.py index cf04c74..7dd299c 100644 --- a/src/main/python/basic_client.py +++ b/src/main/python/basic_client.py @@ -31,7 +31,7 @@ protocol = TCompactProtocol.TCompactProtocol(transport) client = AccumuloProxy.Client(protocol) transport.open() -login = client.login('root', {'password':'secret'}) +login = "sharedSecret" print client.listTables(login) diff --git a/src/main/ruby/client.rb b/src/main/ruby/client.rb index 97d3998..6b4c4a1 100755 --- a/src/main/ruby/client.rb +++ b/src/main/ruby/client.rb @@ -29,8 +29,7 @@ proxy = Accumulo::AccumuloProxy::Client.new(proto) # open up the connect transport.open() -# Test if the server is up -login = proxy.login('root', {'password' => 'secret'}) +login = "sharedSecret" # print out a table list puts "List of tables: #{proxy.listTables(login).inspect}"