Skip to content
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
2 changes: 1 addition & 1 deletion docs/src/main/sphinx/connector/hive-alluxio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ the following:
.. code-block:: text

connector.name=hive
hive.metastore=alluxio
hive.metastore=alluxio-deprecated
hive.metastore.alluxio.master.address=HOSTNAME:PORT

Replace ``HOSTNAME`` with the Alluxio master hostname, and replace ``PORT``
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ public void testAlluxioMetastore()
new TestingConnectorContext()))
.hasMessageMatching("(?s)Unable to create injector, see the following errors:.*" +
"Explicit bindings are required and HiveMetastoreFactory .* is not explicitly bound.*");

assertThatThrownBy(() -> factory.create(
"test",
ImmutableMap.of("hive.metastore", "alluxio-deprecated"),
new TestingConnectorContext()))
.hasMessageMatching("(?s)Unable to create injector, see the following errors:.*" +
"Explicit bindings are required and HiveMetastoreFactory .* is not explicitly bound.*");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void testAlluxioMetastore()
factory.create(
"test",
ImmutableMap.of(
"hive.metastore", "alluxio",
"hive.metastore", "alluxio-deprecated",
"hive.metastore.alluxio.master.address", "dummy:1234"),
new TestingConnectorContext())
.shutdown();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected void setup(Binder binder)
// Load Alluxio metastore support through reflection. This makes Alluxio effectively an optional dependency
// and allows deploying Trino without the Alluxio jar. Can be useful if the integration is unused and is flagged
// by a security scanner.
bindMetastoreModule("alluxio", deferredModule("io.trino.plugin.hive.metastore.alluxio.AlluxioMetastoreModule"));
bindMetastoreModule("alluxio-deprecated", deferredModule("io.trino.plugin.hive.metastore.alluxio.AlluxioMetastoreModule"));
}

install(new DecoratedHiveMetastoreModule());
Expand Down