Skip to content

Commit c27d4af

Browse files
authored
Update HiveClientImpl.scala
conflict of hiveUtils
1 parent e8c0571 commit c27d4af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import org.apache.hadoop.hive.ql.session.SessionState
4242
import org.apache.hadoop.hive.serde.serdeConstants
4343
import org.apache.hadoop.hive.serde2.MetadataTypedColumnsetSerDe
4444
import org.apache.hadoop.hive.serde2.`lazy`.LazySimpleSerDe
45-
import org.apache.hadoop.hive.shims.{Utils => HiveUtils}
45+
import org.apache.hadoop.hive.shims.{Utils => HiveShimsUtils}
4646

4747
import org.apache.spark.{SparkConf, SparkException}
4848
import org.apache.spark.internal.Logging
@@ -223,7 +223,7 @@ private[hive] class HiveClientImpl(
223223
}
224224

225225
private val userName: String = try {
226-
val ugi = HiveUtils.getUGI
226+
val ugi = HiveShimsUtils.getUGI
227227
ugi.getShortUserName
228228
} catch {
229229
case _: LoginException => throw new IOException("Can not get login user.")

0 commit comments

Comments
 (0)