Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-22598

Pig service check failed after PU with LzoCodec CNF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.6.1
    • 2.6.1
    • None
    • None

    Description

      STR

      1. Deployed cluster with Ambari version: 2.5.1.0-159 and HDP version: 2.6.1.0-129 (HDFS has lzo enabled)
      2. Upgrade Ambari to Target Version: 2.6.1.0-84
      3. Perform full stack upgrade to 2.6.4.0-55
      4. Perform 4th digit PU of some services in batches (see attached for list)
      5. Run Pig service check

      Result

      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/common-services/PIG/0.12.0.2.0/package/scripts/service_check.py", line 141, in <module>
          PigServiceCheck().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute
          method(env)
        File "/var/lib/ambari-agent/cache/common-services/PIG/0.12.0.2.0/package/scripts/service_check.py", line 85, in service_check
          logoutput = True
        File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 166, in __init__
          self.env.run()
        File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
          self.run_action(resource, action)
        File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
          provider_action()
        File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 262, in action_run
          tries=self.resource.tries, try_sleep=self.resource.try_sleep)
        File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 72, in inner
          result = function(command, **kwargs)
        File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 102, in checked_call
          tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
        File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 150, in _call_wrapper
          result = _call(command, **kwargs_copy)
        File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 303, in _call
          raise ExecutionFailed(err_msg, code, out, err)
      resource_management.core.exceptions.ExecutionFailed: Execution of 'pig /var/lib/ambari-agent/tmp/pigSmoke.sh' returned 6. 17/12/04 12:07:26 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
      17/12/04 12:07:26 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
      17/12/04 12:07:26 INFO pig.ExecTypeProvider: Trying ExecType : TEZ_LOCAL
      17/12/04 12:07:26 INFO pig.ExecTypeProvider: Trying ExecType : TEZ
      17/12/04 12:07:26 INFO pig.ExecTypeProvider: Picked TEZ as the ExecType
      2017-12-04 12:07:27,044 [main] INFO  org.apache.pig.Main - Apache Pig version 0.16.0.2.6.4.1-12 (rexported) compiled Nov 29 2017, 15:19:29
      2017-12-04 12:07:27,044 [main] INFO  org.apache.pig.Main - Logging error messages to: /home/ambari-qa/pig_1512389247042.log
      2017-12-04 12:07:27,738 [main] INFO  org.apache.pig.impl.util.Utils - Default bootup file /home/ambari-qa/.pigbootup not found
      2017-12-04 12:07:27,860 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: hdfs://ctr-e135-1512069032975-4843-01-000006.hwx.site:8020
      2017-12-04 12:07:28,422 [main] INFO  org.apache.pig.PigServer - Pig Script ID for the session: PIG-pigSmoke.sh-04da505f-7f53-4f4d-bab5-be5732c283fb
      2017-12-04 12:07:28,743 [main] INFO  org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl - Timeline service address: http://ctr-e135-1512069032975-4843-01-000003.hwx.site:8188/ws/v1/timeline/
      2017-12-04 12:07:28,994 [main] INFO  org.apache.pig.backend.hadoop.PigATSClient - Created ATS Hook
      2017-12-04 12:07:29,800 [main] INFO  org.apache.hadoop.hdfs.DFSClient - Created HDFS_DELEGATION_TOKEN token 1084 for ambari-qa on 172.27.73.145:8020
      2017-12-04 12:07:29,827 [main] INFO  org.apache.hadoop.mapreduce.security.TokenCache - Got dt for hdfs://ctr-e135-1512069032975-4843-01-000006.hwx.site:8020; Kind: HDFS_DELEGATION_TOKEN, Service: 172.27.73.145:8020, Ident: (HDFS_DELEGATION_TOKEN token 1084 for ambari-qa)
      2017-12-04 12:07:29,844 [main] INFO  org.apache.pig.tools.pigstats.ScriptState - Pig features used in the script: UNKNOWN
      2017-12-04 12:07:29,895 [main] INFO  org.apache.pig.data.SchemaTupleBackend - Key [pig.schematuple] was not set... will not generate code.
      2017-12-04 12:07:29,933 [main] INFO  org.apache.pig.newplan.logical.optimizer.LogicalPlanOptimizer - {RULES_ENABLED=[AddForEach, ColumnMapKeyPrune, ConstantCalculator, GroupByConstParallelSetter, LimitOptimizer, LoadTypeCastInserter, MergeFilter, MergeForEach, PartitionFilterOptimizer, PredicatePushdownOptimizer, PushDownForEachFlatten, PushUpFilter, SplitFilter, StreamTypeCastInserter]}
      2017-12-04 12:07:29,993 [main] INFO  org.apache.pig.impl.util.SpillableMemoryManager - Selected heap (PS Old Gen) of size 699400192 to monitor. collectionUsageThreshold = 489580128, usageThreshold = 489580128
      2017-12-04 12:07:30,093 [main] INFO  org.apache.pig.backend.hadoop.executionengine.tez.TezLauncher - Tez staging directory is /tmp/ambari-qa/staging and resources directory is /tmp/temp-394866789
      2017-12-04 12:07:30,144 [main] INFO  org.apache.pig.backend.hadoop.executionengine.tez.plan.TezCompiler - File concatenation threshold: 100 optimistic? false
      2017-12-04 12:07:30,274 [main] INFO  org.apache.pig.builtin.PigStorage - Using PigTextInputFormat
      2017-12-04 12:07:30,278 [main] INFO  org.apache.hadoop.hdfs.DFSClient - Created HDFS_DELEGATION_TOKEN token 1085 for ambari-qa on 172.27.73.145:8020
      2017-12-04 12:07:30,279 [main] INFO  org.apache.hadoop.mapreduce.security.TokenCache - Got dt for hdfs://ctr-e135-1512069032975-4843-01-000006.hwx.site:8020; Kind: HDFS_DELEGATION_TOKEN, Service: 172.27.73.145:8020, Ident: (HDFS_DELEGATION_TOKEN token 1085 for ambari-qa)
      2017-12-04 12:07:30,281 [main] INFO  org.apache.hadoop.mapreduce.lib.input.FileInputFormat - Total input paths to process : 1
      2017-12-04 12:07:30,281 [main] INFO  org.apache.pig.backend.hadoop.executionengine.util.MapRedUtil - Total input paths to process : 1
      org.apache.pig.backend.executionengine.ExecException: ERROR 2118: Compression codec com.hadoop.compression.lzo.LzoCodec not found.
      	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigInputFormat.getSplits(PigInputFormat.java:279)
      	at org.apache.tez.mapreduce.hadoop.MRInputHelpers.generateNewSplits(MRInputHelpers.java:413)
      	at org.apache.tez.mapreduce.hadoop.MRInputHelpers.generateInputSplitsToMem(MRInputHelpers.java:292)
      	at org.apache.pig.backend.hadoop.executionengine.tez.plan.optimizer.LoaderProcessor.processLoads(LoaderProcessor.java:169)
      	at org.apache.pig.backend.hadoop.executionengine.tez.plan.optimizer.LoaderProcessor.visitTezOp(LoaderProcessor.java:182)
      	at org.apache.pig.backend.hadoop.executionengine.tez.plan.TezOperator.visit(TezOperator.java:255)
      	at org.apache.pig.backend.hadoop.executionengine.tez.plan.TezOperator.visit(TezOperator.java:56)
      	at org.apache.pig.impl.plan.DependencyOrderWalker.walk(DependencyOrderWalker.java:87)
      	at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:46)
      	at org.apache.pig.backend.hadoop.executionengine.tez.TezLauncher.processLoadAndParallelism(TezLauncher.java:500)
      	at org.apache.pig.backend.hadoop.executionengine.tez.TezLauncher.launchPig(TezLauncher.java:186)
      	at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:308)
      	at org.apache.pig.PigServer.launchPlan(PigServer.java:1474)
      	at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1459)
      	at org.apache.pig.PigServer.execute(PigServer.java:1448)
      	at org.apache.pig.PigServer.executeBatch(PigServer.java:488)
      	at org.apache.pig.PigServer.executeBatch(PigServer.java:471)
      	at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:170)
      	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:233)
      	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:204)
      	at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)
      	at org.apache.pig.Main.run(Main.java:630)
      	at org.apache.pig.Main.main(Main.java:175)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
      	at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
      Caused by: java.lang.IllegalArgumentException: Compression codec com.hadoop.compression.lzo.LzoCodec not found.
      	at org.apache.hadoop.io.compress.CompressionCodecFactory.getCodecClasses(CompressionCodecFactory.java:139)
      	at org.apache.hadoop.io.compress.CompressionCodecFactory.<init>(CompressionCodecFactory.java:180)
      	at org.apache.hadoop.mapreduce.lib.input.TextInputFormat.isSplitable(TextInputFormat.java:59)
      	at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:399)
      	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigInputFormat.getSplits(PigInputFormat.java:265)
      	... 28 more
      Caused by: java.lang.ClassNotFoundException: Class com.hadoop.compression.lzo.LzoCodec not found
      	at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2147)
      	at org.apache.hadoop.io.compress.CompressionCodecFactory.getCodecClasses(CompressionCodecFactory.java:132)
      	... 32 more
      2017-12-04 12:07:30,322 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2118: Compression codec com.hadoop.compression.lzo.LzoCodec not found.
      Details at logfile: /home/ambari-qa/pig_1512389247042.log
      2017-12-04 12:07:30,338 [main] INFO  org.apache.pig.Main - Pig script completed in 3 seconds and 457 milliseconds (3457 ms)
      2017-12-04 12:07:30,338 [main] INFO  org.apache.pig.backend.hadoop.executionengine.tez.TezLauncher - Shutting down thread pool
      

      Attachments

        1. AMBARI-22598.patch
          6 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              shavi71 Vivek Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: