资源简介
解决org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z问题
代码片段和文件信息
#!/usr/bin/python
# Licensed 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.
import re
import sys
from optparse import OptionParser
import httplib
import urllib
import cgi
try:
import json
except ImportError:
import simplejson as json
namePattern = re.compile(r‘ \([0-9]+\)‘)
def clean(str):
return quoteHtml(re.sub(namePattern ““ str))
def formatComponents(str):
str = re.sub(namePattern ‘‘ str).replace(“‘“ ““)
if str != ““:
ret = “(“ + str + “)“
else:
ret = ““
return quoteHtml(ret)
def quoteHtml(str):
return cgi.escape(str).encode(‘ascii‘ ‘xmlcharrefreplace‘)
def mstr(obj):
if (obj == None):
return ““
return unicode(obj)
class Version:
“““Represents a version number“““
def __init__(self data):
self.mod = False
self.data = data
found = re.match(‘^((\d+)(\.\d+)*).*$‘ data)
if (found):
self.parts = [ int(p) for p in found.group(1).split(‘.‘) ]
else:
self.parts = []
# backfill version with zeroes if missing parts
self.parts.extend((0) * (3 - len(self.parts)))
def decBugFix(self):
self.mod = True
self.parts[2] -= 1
return self
def __str__(self):
if (self.mod):
return ‘.‘.join([ str(p) for p in self.parts ])
return self.data
def __cmp__(self other):
return cmp(self.parts other.parts)
class Jira:
“““A single JIRA“““
def __init__(self data parent):
self.key = data[‘key‘]
self.fields = data[‘fields‘]
self.parent = parent
self.notes = None
def getId(self):
return mstr(self.key)
def getDescription(self):
return mstr(self.fields[‘description‘])
def getReleaseNote(self):
if (self.notes == None):
field = self.parent.fieldIdMap[‘Release Note‘]
if (self.fields.has_key(field)):
self.notes=mstr(self.fields[field])
else:
self.notes=self.getDescription()
return self.notes
def getPriority(self):
ret = ““
pri = self.fields[‘priority‘]
if(pri != None):
ret = pri[‘name‘]
return mstr(ret)
def getAssignee(self):
ret = ““
mid = self.fields[‘assignee‘]
if(mid != None):
ret = mid[‘displayName‘]
return mstr(ret)
def getComponents(self):
return “ “.join([ comp[‘name‘] for comp in self.fields[‘components‘] ])
def getSummary(self):
return self.fields[‘summary‘]
def getType(self):
ret = ““
mid = self.fields[‘issuetype‘]
if(mid != None):
ret = mid[‘name‘]
return mstr(ret)
def get
- 上一篇:Xamarin自动破解工具
- 下一篇:多开分身_9破解.apk
相关资源
- hadoop-eclipse-plugin-2.4.1.jar windows
- hadoop-eclipse-plugin-2.7.7.jar 官方版本编译
- hadoop2.7.2 window10编译后jar包
- spark-assembly-1.6.1-hadoop2.6.0.jar
- 05_尚硅谷大数据技术之HadoopMapReduce.
- 基于Hadoop实现对网站日志数据分析
- spark-assembly-1.5.2-hadoop2.6.0jar包
- win10下编译过的hadoop jar包--hadoop-2.7.
- 基于hadoop的web云盘系统
- hadoop2.9.2 eclipse插件
- Hadoop-eclipse插件
- hadoop-eclipse-plugin-2.6.5.jar
-
hadoop hba
se 全jar包 - hadoop最新版本3.1.1全量jar包
- yarn任务邮件监控及linux进程邮件监控
- hadoop-2.6.0编译好的64bit的native库
- hadoop/mapreduce-矩阵乘法 mapreduce的实现
- 山东大学大数据实验二:倒排索引H
- hadoop k-means实现
- 最高气温 map reduce hadoop
- mongo-hadoop-hive-2.0.2.jar
- mongo-hadoop-core-2.0.1.jar
- hadoop-2.6.0 win工具包 hadoop.dll winutils
- hadoop2.7.1(hadoop.dllwinutils.exe) 亲自测
- hadoop2 MR运行修改jar
- hadoop k-means算法实现可直接命令行运行
- MR编程之Top3源代码
- 用MapReduce开发的一个TFIDF 计算关键字
- hadoop实战源代码Java
- hadoop-2.6.0-hadoop.dll-winutils.exe
评论
共有 条评论