Hive has an available global session configuration that allows you to override any property and the overriding of Hive connector properties when running queries during an individual processing session.
When overriding Hive connector properties for a Hive session, you must specify the non-native table whose Hive connector properties you want to override. Use commas as delimiters.
- Under Fabric Configuration, select Fabrics.
- Select the fabric.
- Perform one of the following:
Option Description To override a Hive connector property in the Connectors tab - Select the Connectors tab.
- Select
next to the connector that has a property to override.
- Select Edit.
- Select
next to Connector Software.
- Find the Hive connector property to override and select the Overridable check box.
- Select OK.
- Select Save..
To override a Hive connector property in the Links tab - Select the Links tab.
- Select
next to the link that has a property to override.
- Select Edit.
- Select
next to Initiating Connector or Target Connector.
- Find the Hive link property to override and select the Overridable check box.
- Select OK.
- Select Save..
- To override the Hive connector property during a Hive session, use the syntax in the following example where the connector properties responseTimeout and linkBufferCount are overridden.
SET <databaseName>.<nonNativeTableName>.override = responsetimeout = 3000000, linkBufferCount=3;
- [Optional] To override hadoopProperties when using the Hive connector that is designated as overridable in the QueryGrid portlet, use the pipe (|) symbol to split Hadoop properties and a colon (:) to split name value pairs.The following example is used to override hadoopProperties during either a Hive or Presto session targeting a Hive connector:
SET <databaseName>.<nonNativeTableName>.override = linkbuffersize=100000, DEFAULTSTRINGSIZE=32000, hadoopProperties=name1:value1 | name2:value2 ;
- [Optional] To clear Hive connector property overrides without closing a Hive session, use the syntax as in the following example.
SET <databaseName>.<nonNativeTableName>.override = ;