Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ object SparkXSQLShell extends Logging {
sqlContext = spark.sqlContext
conf = spark.sparkContext.getConf
sc = spark.sparkContext
processInitFile(conf)
// Don't call processInitFile again to avoid load .hiverc twice.
// For more details, please see https://github.com/Qihoo360/XSQL/pull/45
// processInitFile(conf)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

processInitFile is only used for load .hiverc?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

processInitFile is only used for load .hiverc?

Yes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should change coment as 'Don't call processInitFile again to avoid load .hiverc twice.'

}

def initialize(sqlContent: String, conf: SparkConf) = {
Expand Down