摘要: 我在CentOS遇到这个问题,50070不行但8088可以,尝试了各种方法无法解决,各个进程全都启动,格式化namenode,各种配置正常均无法解决。后来觉得是默认访问端口没有生效,所以尝试添加端口配如下mapred-site.xml 添加下面两个<property> <name>mapred.jo 阅读全文
posted @ 2018-09-25 17:19 随笔` 阅读(3672) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-09-25 10:31 随笔` 阅读(125) 评论(0) 推荐(0) 编辑
摘要: // Copyright 2012 ESRI // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // You may freely redistribute and... 阅读全文
posted @ 2018-06-07 09:04 随笔` 阅读(238) 评论(0) 推荐(0) 编辑
摘要: /// ///获取保存的SDE文件 /// /// /// public static bool SaveSdeConnectionFile(string sdePath) { try ... 阅读全文
posted @ 2018-05-24 13:21 随笔` 阅读(217) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Drawing; using System.Runtime.InteropServices; using ESRI.ArcGIS.ADF; using ESRI.ArcGIS.ADF.BaseClasses; using ESRI.ArcGIS.ADF.CATIDs; using ESRI.ArcGIS.Controls; using ESR... 阅读全文
posted @ 2018-05-23 17:14 随笔` 阅读(221) 评论(0) 推荐(0) 编辑
摘要: #encoding=utf-8 # 元组与列表一样,也是一种序列 print (1,2,3) print 1,2,3 print(1,) print 1, a=1 print(type(a)) a=1,2,3 print(type(a)) # tuple 函数(元组) 以一个序列作为参数并把它转为元组,如果是元组则原样返回 a=[1,2,3,4,4] b=tuple(a) print(a) p... 阅读全文
posted @ 2017-12-12 17:40 随笔` 阅读(124) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- # 第一行的目的,是为了让代码里面,可以有中文注释信息. (否则要运行报错) # 这个 Python 脚本, 用于被 C# 来调用. # 简单测试 Hello World 的效果. def welcome(name): return "hello " + name # 测试 参数为 C# 对象的效果. (获取/设置 C# 对象的属性)... 阅读全文
posted @ 2017-12-12 17:37 随笔` 阅读(6512) 评论(12) 推荐(1) 编辑
摘要: #encoding=utf-8 import math a=[1,23,4,5,6] print a a[1:1]=[2,3,5] print a a a[1]='a' print a a[1]={1,1,2,3,4} print a #序列的append()方法 a.append({000,3,2,23,4}) a.append([2,2,3,4]) print a # 异常扑捉 try:... 阅读全文
posted @ 2017-12-10 23:36 随笔` 阅读(220) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 运行CMD命令 /// </summary> /// <param name="cmd">命令</param> /// <returns></returns> private static void RunCmd(string[] cmd) { try { // 阅读全文
posted @ 2017-10-09 16:26 随笔` 阅读(955) 评论(0) 推荐(0) 编辑
摘要: public static List<ILayer> LoadGdbRasterLayer(string dataYear, List<string> regionCodes) { string gdbPath = AppConfig.MapMineThemePicPath; if (!Direct 阅读全文
posted @ 2017-09-28 09:58 随笔` 阅读(232) 评论(0) 推荐(0) 编辑