自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 oozie org.apache.oozie.action.ActionExecutorException: JA017: Unknown hadoop job [job_local138731358

oozie 创建工作流 Unknown hadoop job

2022-12-23 01:13:50 241

原创 hue访问spark编辑器,有时创建任务会失败

环境:hdp2.6.x,ambari2.5.x报错内容如下:无法在群集中创建 Spark 会话:YARN Diagnostics: Application application_1632379940636_0057 failed 1 times (global limit =2; local limit is =1)due to AM Container for appattempt_1632379940636_0057_000001 exited with exitCode: -1000..

2021-10-12 19:30:59 1337

原创 根据IP获取网卡名字,提取mac

# 根据IP获取网卡名grep 192.168.6.111 /etc/sysconfig/network-scripts/*|awk -F ':' '{print $1}'|awk -F '-' '{print $3}'# 获取网卡对应的maca=`grep 192.168.6.111 /etc/sysconfig/network-scripts/*|awk -F ':' '{print $1}'|awk -F '-' '{print $3}'`ip link show $a| grep ethe.

2021-08-05 10:54:51 544

原创 python中的openstack模块

openstack在python中的模块名字叫openstacksdk安装方法:pip install openstacksdk使用:import openstack

2021-07-29 14:48:13 702

原创 使用hdfs模块上传文件时出错

参考:https://blog.youkuaiyun.com/fuck487/article/details/80859581上传文件时报错:for res in _socket.getaddrinfo(host, port, family, type, proto, flags):socket.gaierror: [Errno 11001] getaddrinfo failedurllib3.exceptions.NewConnectionError: <urllib3.connection.H

2021-07-26 17:39:22 2026 3

原创 boto3官方文档示例的一些问题

个人在使用boto3官方文档的示例时感觉示例有些地方写的不太对(水平有限,不要喷我)。使用的boto3版本是1.17.1121 上传文件例子:https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-uploading-files.html标注的地方写 key_name更合适,而且这个值需要输入的,不要为空。比如要上传的文件是world.txt,要上传到bucket为test的nfs下,key_name应设置为nfs/wo.

2021-07-16 09:58:34 497

原创 boto3 上传文件时报Content-MD5错误

boto3通过upload_file()方法上传文件时报错 :The Content-MD5 you specified did not match what we received.出现这个错误,我是通过设置客户端连接参数解决的。设置config这个参数。import boto3from botocore.exceptions import ClientErrorimport hashlibfrom botocore.client import Configclass S3Tes

2021-07-16 09:48:22 1539

原创 Findbugs tar下载地址

https://sourceforge.net/projects/findbugs/files/findbugs/3.0.1/

2021-07-12 18:26:18 174

原创 ambari-server启动报错 Current database store version is not compatible with current server version

安装ambari-server时,安装时没提示错误。systemctl status ambari-server查看服务也在运行。但是agent端无法连接server。查看日志,8 Feb 2021 14:41:03,718 ERROR [main] AmbariServer:1017 - Failed to run the Ambari Serverorg.apache.ambari.server.AmbariException: Current database store version is

2021-02-08 17:25:26 995

原创 kylin使用默认用户登录

修改kylin的配置文件kylin.properties# 使用默认用户登录,需要进行如下设置kylin.security.profile=testingkylin.security.acl.default-role=ROLE_ANALYST,ROLE_MODELERkylin.security.acl.admin-role=ROLE_ADMINkylin的配置文件kylin.properties,里面的好多内容是被注释掉的,找到其中的内容,将前面的#去掉。然后使用默认的ADMIN/KYL.

2020-12-29 14:36:02 5129

原创 ansible {{}}引用变量,变量中嵌套变量如何表示

在跨主机调用变量时可能会在变量中又引用另一个变量的情况- name: get password shell: "cat /home/{{elastic_user}}/a" register: encrypt_out when: inventory_hostname in groups['master']- set_fact: hash_pass: "{{encrypt_out.stdout}}" when: inventory_hostname in groups['mas

2020-12-08 15:44:10 1927 1

原创 安装hue时报错, no sucn file:ffi.h

centos7下安装hue,执行make apps时会报错,说没有ffi.h这个文件,此时需要安装:libffi、libffi-devel

2020-12-07 11:03:02 188

原创 centos7 安装fc-list命令

fc-list、fa-cache来自fontconfig这个rpm包[root@mh-nn-02 collect_rpm]# which fc-list/usr/bin/fc-list[root@mh-nn-02 collect_rpm]# rpm -qf /usr/bin/fc-listfontconfig-2.13.0-4.3.el7.x86_64

2020-11-29 12:19:11 6724

原创 ambari-agent注册失败

INFO 2020-11-24 17:22:39,216 NetUtil.py:67 - Connecting to https://192.168.6.142:8440/caERROR 2020-11-24 17:22:39,282 NetUtil.py:93 - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)ERROR 2020-11-24 17:22:39,283 NetUtil.py:94 - SS.

2020-11-24 17:38:40 614

原创 openstack restAPI v3 token

在openstack v3版本(具体是3.6),使用RESTful API根据官方文档提示获取到的token在进行其他操作时会提示 401 Unauthorized 错误,试验其他几种获取方法结果都不好使,也没找到其他好的解决方法。如果你着急进行其他操作而不必纠结token是否从restclient上获取的话,你可以从后台通过命令行获取从而进行其他工作。    在后台命令行执行 source

2016-12-14 13:36:42 815

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除