Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBASE-28572 Remove deprecated methods in thrift module #5882

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Autogenerated by Thrift Compiler (0.12.0)
# Autogenerated by Thrift Compiler (0.14.1)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
Expand Down Expand Up @@ -59,7 +59,6 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print(' bool isTableEnabled(TTableName tableName)')
print(' bool isTableDisabled(TTableName tableName)')
print(' bool isTableAvailable(TTableName tableName)')
print(' bool isTableAvailableWithSplit(TTableName tableName, splitKeys)')
print(' void addColumnFamily(TTableName tableName, TColumnFamilyDescriptor column)')
print(' void deleteColumnFamily(TTableName tableName, string column)')
print(' void modifyColumnFamily(TTableName tableName, TColumnFamilyDescriptor column)')
Expand All @@ -71,6 +70,11 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print(' listNamespaceDescriptors()')
print(' listNamespaces()')
print(' TThriftServerType getThriftServerType()')
print(' string getClusterId()')
print(' getSlowLogResponses( serverNames, TLogQueryFilter logQueryFilter)')
print(' clearSlowLogResponses( serverNames)')
print(' bool grant(TAccessControlEntity info)')
print(' bool revoke(TAccessControlEntity info)')
print('')
sys.exit(0)

Expand Down Expand Up @@ -360,12 +364,6 @@ elif cmd == 'isTableAvailable':
sys.exit(1)
pp.pprint(client.isTableAvailable(eval(args[0]),))

elif cmd == 'isTableAvailableWithSplit':
if len(args) != 2:
print('isTableAvailableWithSplit requires 2 args')
sys.exit(1)
pp.pprint(client.isTableAvailableWithSplit(eval(args[0]), eval(args[1]),))

elif cmd == 'addColumnFamily':
if len(args) != 2:
print('addColumnFamily requires 2 args')
Expand Down Expand Up @@ -432,6 +430,36 @@ elif cmd == 'getThriftServerType':
sys.exit(1)
pp.pprint(client.getThriftServerType())

elif cmd == 'getClusterId':
if len(args) != 0:
print('getClusterId requires 0 args')
sys.exit(1)
pp.pprint(client.getClusterId())

elif cmd == 'getSlowLogResponses':
if len(args) != 2:
print('getSlowLogResponses requires 2 args')
sys.exit(1)
pp.pprint(client.getSlowLogResponses(eval(args[0]), eval(args[1]),))

elif cmd == 'clearSlowLogResponses':
if len(args) != 1:
print('clearSlowLogResponses requires 1 args')
sys.exit(1)
pp.pprint(client.clearSlowLogResponses(eval(args[0]),))

elif cmd == 'grant':
if len(args) != 1:
print('grant requires 1 args')
sys.exit(1)
pp.pprint(client.grant(eval(args[0]),))

elif cmd == 'revoke':
if len(args) != 1:
print('revoke requires 1 args')
sys.exit(1)
pp.pprint(client.revoke(eval(args[0]),))

else:
print('Unrecognized method %s' % cmd)
sys.exit(1)
Expand Down
Loading