资源简介
hadoop-3.0.3 的linux 安装包!
代码片段和文件信息
#!/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
DEFAULT_TOP_NUM_FAILED_TEST = -1
SECONDS_PER_DAY = 86400
# total number of runs to examine
numRunsToExamine = 0
#summary mode
summary_mode = False
#total number of errors
error_count = 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“
defa
相关资源
- 亮跑旅游CMS8.1独立版内核框架安装包
- idea hadoop-hdfs插件
- IE11_for_Win7_x86离线安装包
- CentOS7gcc离线安装包.zip
- ANTS Memory Profiler 8.1 安装包+激活工具
- 企业数据湖-Data Lake for Enterprises-原版
- Hadoop权威指南中文高清完整版PDF 第五
- zemax2009 安装包+安装教程
- 基于hadoop搜索引擎 离线处理程序
- Win32OpenSSL-1_0_2n 安装包
- HadoopWeb项目--网上商城推荐系统
- vos2009 2.1.4.0安装包
- rc3控件安装包
- TortoiseSVN-1.8.3.24901-x64-svn-1.8.4英文64位
- TortoiseSVN-1.11.1.28492-x64-svn-1.11.1官方安
- TortoiseSVN-1.11.1.28492-win32-svn-1.11.1官方英
- ffmpeg一键安装包
- redis desktop manager for Mac-0.9.3.dmg
- cmake2.8版本(含windows和linux安装包以及
- rocketmq3.5.8安装包附安装步骤
- 改价精灵安装包.exe
- Hadoop实战-陆嘉恒高清完整版.pdf
-
Dotnetfr
amework4.0完全安装包 - eclipse的hadoop2.7.2插件
-
robot fr
amework一键式安装包 - 奇店社群社区团购小程序V5.5.9完整安
- Hspice2005安装包以及教程
- Git-2.23.0-64-bit--Windows安装包.zip
- NavicatPremium12安装包和激活工具
- PyMol安装包非常实用
评论
共有 条评论