<commit_before>
# Hive HCatalog Check

    module.exports = []
    module.exports.push 'masson/bootstrap/'
    module.exports.push 'ryba/hive/server2/wait'
    module.exports.push require('./index').configure

## Check Thrift Port

Check if the Hive Server2 server is listening.

    module.exports.push name: 'Hive Server2 # Check Thrift Port', label_true: 'CHECKED', handler: (ctx, next) ->
      {hive} = ctx.config.ryba
      port = if hive.site['hive.server2.transport.mode'] is 'http'
      then hive.site['hive.server2.thrift.http.port']
      else hive.site['hive.server2.thrift.port']
      ctx.execute
        cmd: "echo > /dev/tcp/#{ctx.config.host}/#{port}"
      , next

    module.exports.push name: 'Hive Server2 # Check JDBC', timeout: -1, handler: (ctx, next) ->
      # http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.3.0/CDH4-Security-Guide/cdh4sg_topic_9_1.html
      # !connect jdbc:hive2://big3.big:10001/default;principal=hive/big3.big@ADALTAS.COM 
      next null, 'TODO'<commit_msg>hive server2: remove unlimited timeout<commit_after>
# Hive HCatalog Check

    module.exports = []
    module.exports.push 'masson/bootstrap/'
    module.exports.push 'ryba/hive/server2/wait'
    module.exports.push require('./index').configure

## Check Thrift Port

Check if the Hive Server2 server is listening.

    module.exports.push name: 'Hive Server2 # Check Thrift Port', label_true: 'CHECKED', handler: (ctx, next) ->
      {hive} = ctx.config.ryba
      port = if hive.site['hive.server2.transport.mode'] is 'http'
      then hive.site['hive.server2.thrift.http.port']
      else hive.site['hive.server2.thrift.port']
      ctx.execute
        cmd: "echo > /dev/tcp/#{ctx.config.host}/#{port}"
      , next

    module.exports.push name: 'Hive Server2 # Check JDBC', handler: (ctx, next) ->
      # http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.3.0/CDH4-Security-Guide/cdh4sg_topic_9_1.html
      # !connect jdbc:hive2://master3.ryba:10001/default;principal=hive/master3.ryba@HADOOP.RYBA
      next null, 'TODO'
{'fraction_non_alphanumeric': 0.14829080404429465, 'fraction_numerical': 0.023110255175734232, 'mean_word_length': 3.2845360824742267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3716887', 'n_tokens_mistral': 761, 'n_tokens_neox': 748, 'n_words': 135}