Skip to content

Commit 012f7ec

Browse files
Darren LoPhilip Langdale
Darren Lo
authored and
Philip Langdale
committed
[api][sqoop] OPSAPS-24899 Add Sqoop Create Database
1 parent c4a39e2 commit 012f7ec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

python/src/cm_api/endpoints/services.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,16 @@ def create_sqoop_user_dir(self):
12271227
"""
12281228
return self._cmd('createSqoopUserDir', api_version=4)
12291229

1230+
def create_sqoop_database_tables(self):
1231+
"""
1232+
Creates the Sqoop2 Server database tables in the configured database.
1233+
Will do nothing if tables already exist. Will not perform an upgrade.
1234+
1235+
@return: Reference to the submitted command.
1236+
@since: API v10
1237+
"""
1238+
return self._cmd('sqoopCreateDatabaseTables', api_version=10)
1239+
12301240
def upgrade_sqoop_db(self):
12311241
"""
12321242
Upgrade Sqoop Database schema as part of a major version upgrade.

0 commit comments

Comments
 (0)