资源简介
hadoop-2.7.3-src.tar.gz .............................................................................................
代码片段和文件信息
#!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License Version 2.0 (the
# “License“); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing software
# distributed under the License is distributed on an “AS IS“ BASIS
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Given a jenkins test job this script examines all runs of the job done
# within specified period of time (number of days prior to the execution
# time of this script) and reports all failed tests.
#
# The output of this script includes a section for each run that has failed
# tests with each failed test name listed.
#
# More importantly at the end it outputs a summary section to list all failed
# tests within all examined runs and indicate how many runs a same test
# failed and sorted all failed tests by how many runs each test failed.
#
# This way when we see failed tests in PreCommit build we can quickly tell
# whether a failed test is a new failure or it failed before and how often it
# failed so to have idea whether it may just be a flaky test.
#
# Of course to be 100% sure about the reason of a test failure closer look
# at the failed test for the specific run is necessary.
#
import sys
import platform
sysversion = sys.hexversion
onward30 = False
if sysversion < 0x020600F0:
sys.exit(“Minimum supported python version is 2.6 the current version is “ +
“Python“ + platform.python_version())
if sysversion == 0x030000F0:
sys.exit(“There is a known bug with Python“ + platform.python_version() +
“ please try a different version“);
if sysversion < 0x03000000:
import urllib2
else:
onward30 = True
import urllib.request
import datetime
import json as simplejson
import logging
from optparse import OptionParser
import time
# Configuration
DEFAULT_JENKINS_URL = “https://builds.apache.org“
DEFAULT_JOB_NAME = “Hadoop-Common-trunk“
DEFAULT_NUM_PREVIOUS_DAYS = 14
SECONDS_PER_DAY = 86400
# total number of runs to examine
numRunsToExamine = 0
“““ Parse arguments “““
def parse_args():
parser = OptionParser()
parser.add_option(“-J“ “--jenkins-url“ type=“string“
dest=“jenkins_url“ help=“Jenkins URL“
default=DEFAULT_JENKINS_URL)
parser.add_option(“-j“ “--job-name“ type=“string“
dest=“job_name“ help=“Job name to look at“
default=DEFAULT_JOB_NAME)
parser.add_option(“-n“ “--num-days“ type=“int“
dest=“num_prev_d
相关资源
- win10 hadoop-3.1.1-winutils-master hadoop.dllw
- HadoopIntellijPlugin-1.0.zip
- hadoop炼数成金完整版教学ppt
- hadoop权威指南第四版高清pdf+源码
- hadoop相关的十几篇论文
- 某市旅游大数据集成平台建设技术方
- hadoop构建数据仓库实践240523
-
spring操作hba
se - Hadoop+MapReduce实战手册+PDF电子书+带书
- 17920262hadoopkerberos身份验证.rar
- Hadoop超级详细思维导图原件
- Hadoop思维导图超详细
- 尚硅谷大数据技术之Hadoop入门
- linux编译过的hadoop2.7.6
- spark-2.1.1-bin-hadoop2.7
- Hadoop海量数据处理 技术详解与项目实
- hadoop-2.7.7.tar.gz
- Hadoop分布式云盘系统
- 基于Hadoop集群的分布式日志分析系统
- hadoop2.7.4
- Hadoop实战-陆嘉恒(高清完整版).pd
-
基于Hba
se的海量视频存储简单模拟 - hadoop-eclipse-plugin-2.7.2180059
- Hadoop深入浅出分享资料
- sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz1517
- 大数据面试宝典最新版本
- hadoop-eclipse-plugin2.6.0+2.7.0+2.7.1
- hadoop-eclipse-plugin-2.6.5
- 《Elasticsearch集成Hadoop最佳实践》--完
- Cloudera Administrator Training
评论
共有 条评论