After performing a rolling upgrade to HDP 2.3, Hive is broken. The MetaService is sending bad queries to MySQL. For example:
SELECT A0
.NAME
AS NUCORDER0 FROM DBS
A0
WHERE LOWER(A0
.NAME
) LIKE ‘_%’ ESCAPE ‘\’ ORDER BY NUCORDER0
the ESCAPE clause is using a single backslash, so the following quote is being escaped and the query fails. In an older version of the cluster that ESCAPE clause correctly included a pair of backslash characters.
In addition, Ambari insists that I define a value for the property <span class=”control-group control-label-span” data-bindattr-2945=”2945″><span id=”ember29982″ class=”ember-view”>datanucleus.<wbr />rdbms.<wbr />datastoreAdapterClassName, which apparently is only used to support SqlAnywhere, which I am not using. I set it to a bogus value; the MetaService throws an exception related to this property when it comes up, but then continues on using MySQL. I don’t know if that has any bearing on the ESCAPE issue.
</span></span>