Author: ecn
Date: Mon Mar 11 19:48:15 2013
New Revision: 1455300
URL: http://svn.apache.org/r1455300
Log:
ACCUMULO-259 fix the proxy examples
Modified:
accumulo/branches/1.5/proxy/examples/python/TestClient.py
accumulo/branches/1.5/proxy/examples/ruby/test_client.rb
Modified: accumulo/branches/1.5/proxy/examples/python/TestClient.py
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.5/proxy/examples/python/TestClient.py?rev=1455300&r1=1455299&r2=1455300&view=diff
==============================================================================
--- accumulo/branches/1.5/proxy/examples/python/TestClient.py (original)
+++ accumulo/branches/1.5/proxy/examples/python/TestClient.py Mon Mar 11
19:48:15 2013
@@ -30,7 +30,7 @@ protocol = TCompactProtocol.TCompactProt
client = AccumuloProxy.Client(protocol)
transport.open()
-login = client.login(UserPass('root', 'secret'))
+login = client.login('root', {'password':'secret'})
print client.listTables(login)
Modified: accumulo/branches/1.5/proxy/examples/ruby/test_client.rb
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.5/proxy/examples/ruby/test_client.rb?rev=1455300&r1=1455299&r2=1455300&view=diff
==============================================================================
--- accumulo/branches/1.5/proxy/examples/ruby/test_client.rb (original)
+++ accumulo/branches/1.5/proxy/examples/ruby/test_client.rb Mon Mar 11
19:48:15 2013
@@ -29,7 +29,7 @@ proxy = AccumuloProxy::Client.new(proto)
transport.open()
# Test if the server is up
-login = proxy.login(UserPass.new('username' => 'root', 'password' => 'secret'))
+login = proxy.login('root', {'password' => 'secret'})
# print out a table list
puts "List of tables: #{proxy.listTables(login).inspect}"