Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: change single-dash hiveconf to double-dash per discussion in dev@hive "--hiveconf vs -hiveconf" March 7-8, 2014

...

To execute this script file, assuming $SCHEMA has been defined to be the escaped schema value:

Code Block
hive --hiveconf schema="${SCHEMA}" -f your_script_file.sql

...

Hive tends to swallow exceptions from the AvroSerde that occur before job submission. To force Hive to be more verbose, it can be started with *hive --hiveconf hive.root.logger=INFO,console*, which will spit orders of magnitude more information to the console and will likely include any information the AvroSerde is trying to get you about what went wrong. If the AvroSerde encounters an error during MapReduce, the stack trace will be provided in the failed task log, which can be examined from the JobTracker's web interface. the AvroSerde only emits the AvroSerdeException; look for these. Please include these in any bug reports. The most common is expected to be exceptions while attempting to serializing an incompatible type from what Avro is expecting.

...