Bug: Many PR's Scala 2.13 build action failed
Status: Resolved | Priority: Major | Resolution: Fixed
Created: 16/Mar/21 13:49
Affects Version/s: 3.2.0

PR with Scala 2.13 build failure includes 
 * [https://github.com/apache/spark/pull/31849]
 * [https://github.com/apache/spark/pull/31848]
 * [https://github.com/apache/spark/pull/31844]
 * [https://github.com/apache/spark/pull/31843]
 * https://github.com/apache/spark/pull/31841

{code:java}
[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:26:1:  error: package org.apache.commons.cli does not exist
1278[error] import org.apache.commons.cli.GnuParser;
1279[error]                              ^
1280[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:176:1:  error: cannot find symbol
1281[error]     private final Options options = new Options();
1282[error]                   ^  symbol:   class Options
1283[error]   location: class ServerOptionsProcessor
1284[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:177:1:  error: package org.apache.commons.cli does not exist
1285[error]     private org.apache.commons.cli.CommandLine commandLine;
1286[error]                                   ^
1287[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:255:1:  error: cannot find symbol
1288[error]     HelpOptionExecutor(String serverName, Options options) {
1289[error]                                           ^  symbol:   class Options
1290[error]   location: class HelpOptionExecutor
1291[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:176:1:  error: cannot find symbol
1292[error]     private final Options options = new Options();
1293[error]                                         ^  symbol:   class Options
1294[error]   location: class ServerOptionsProcessor
1295[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:185:1:  error: cannot find symbol
1296[error]       options.addOption(OptionBuilder
1297[error]                         ^  symbol:   variable OptionBuilder
1298[error]   location: class ServerOptionsProcessor
1299[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:192:1:  error: cannot find symbol
1300[error]       options.addOption(new Option("H", "help", false, "Print help information"));
1301[error]                             ^  symbol:   class Option
1302[error]   location: class ServerOptionsProcessor
1303[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:197:1:  error: cannot find symbol
1304[error]         commandLine = new GnuParser().parse(options, argv);
1305[error]                           ^  symbol:   class GnuParser
1306[error]   location: class ServerOptionsProcessor
1307[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:211:1:  error: cannot find symbol
1308[error]       } catch (ParseException e) {
1309[error]                ^  symbol:   class ParseException
1310[error]   location: class ServerOptionsProcessor
1311[error] /home/runner/work/spark/spark/sql/hive-thriftserver/src/main/java/org/apache/hive/service/server/HiveServer2.java:262:1:  error: cannot find symbol
1312[error]       new HelpFormatter().printHelp(serverName, options);
1313[error]           ^  symbol:   class HelpFormatter
1314[error]   location: class HelpOptionExecutor
1315[error] Note: Some input files use or override a deprecated API.
1316[error] Note: Recompile with -Xlint:deprecation for details.
1317[error] 16 errors
{code}