<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[weixin_30337157的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/weixin_30337157</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_30337157]]></copyright><item><title><![CDATA[flask db操作]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102451749</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102451749</guid><author>weixin_30337157</author><pubDate>Thu, 26 Sep 2019 22:02:00 +0800</pubDate><description><![CDATA[from flask import Flask

from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
# app.config['SQLALCHEMY_COMMIT_ON_TEARDOWN'] = False
# app.config['SQLALCHEMY_TRACK_MODIFICATIONS'...]]></description><category></category></item><item><title><![CDATA[tornado接收ajax的post请求报错WARNING:tornado.access:405 OPTIONS /add]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/101410535</link><guid>https://blog.csdn.net/weixin_30337157/article/details/101410535</guid><author>weixin_30337157</author><pubDate>Wed, 25 Sep 2019 18:00:00 +0800</pubDate><description><![CDATA[后端报错信息

WARNING:tornado.access:405 OPTIONS /add (::1) 1.00m

前端报错信息

2xhr.js?ec6c:172 OPTIONS http://localhost:8888/add 405 (Method Not Allowed)/#/:1 Access to XMLHttpRequest at 'http://loc...]]></description><category></category></item><item><title><![CDATA[java文件]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102451751</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102451751</guid><author>weixin_30337157</author><pubDate>Wed, 25 Sep 2019 15:28:00 +0800</pubDate><description><![CDATA[package test;

import java.io.*;

public class FileUtils {


    /**
     * @param message 保存的消息
     * @param contentFile 保存的文件
     * 将消息存储，一个文件保存保存消息的数据，一个保存消息的查找索引
     * @throws...]]></description><category></category></item><item><title><![CDATA[跨域问题The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '...]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/101410534</link><guid>https://blog.csdn.net/weixin_30337157/article/details/101410534</guid><author>weixin_30337157</author><pubDate>Wed, 25 Sep 2019 15:14:00 +0800</pubDate><description><![CDATA[withCredentials 属性
上面说到，CORS请求默认不发送Cookie和HTTP认证信息。如果要把Cookie发到服务器，一方面要服务器同意，指定Access-Control-Allow-Credentials字段。

出现这个报错信息很可能是你在前端设置了withCredentials = true;你可以去掉这个设置也可以参考下面两个博客
https://jue...]]></description><category></category></item><item><title><![CDATA[数据写入HDFS报错]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441980</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441980</guid><author>weixin_30337157</author><pubDate>Wed, 25 Sep 2019 11:15:00 +0800</pubDate><description><![CDATA[Exception in thread "main" org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException): Failed to APPEND_FILE /user/super_rj/hive/textfile/GAOSU_passinfo/2...]]></description><category></category></item><item><title><![CDATA[实时记录]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/101462856</link><guid>https://blog.csdn.net/weixin_30337157/article/details/101462856</guid><author>weixin_30337157</author><pubDate>Sun, 22 Sep 2019 08:08:00 +0800</pubDate><description><![CDATA[9.21（模拟49）

9.21 考试（一定一定一定一定放到FTP里）---------------------18：35 审完题了，其实啥都没看出来。18：46 T1树套树？？19：03 别扯淡了，还树套树呢，你又不会打。。前缀和优化一下。19：15 T1好像又是个别人都能AC的但是我却看不懂的题，不做了好吧，下一个。19：45 T2 T3都看不太懂啊，虽然数据范围不是很大，但是真...]]></description><category></category></item><item><title><![CDATA[直播工作原理——直播流]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/101775385</link><guid>https://blog.csdn.net/weixin_30337157/article/details/101775385</guid><author>weixin_30337157</author><pubDate>Fri, 20 Sep 2019 16:07:00 +0800</pubDate><description><![CDATA[第一次接触这个东西，都是不断百度搜索出来总结的一些东西，大佬勿喷！！！
直播过程：视频采集——&gt;视频剪辑（压缩编码（H.264/AAC） --&gt; 字幕叠加 --&gt; 推流 --&gt; CDN）——&gt;播放器
注意：浏览器厂商不同，一些浏览器对视频格式不兼容。
常用直播协议：
ts文件第一个ts文件会有PAT、PMT、TS、TS、TS...根据PAT文件找PM...]]></description><category></category></item><item><title><![CDATA[搬家啦！！]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/101462854</link><guid>https://blog.csdn.net/weixin_30337157/article/details/101462854</guid><author>weixin_30337157</author><pubDate>Tue, 17 Sep 2019 18:15:00 +0800</pubDate><description><![CDATA[转载于:https://www.cnblogs.com/LH-Xuanluo/p/11535966.html]]></description><category></category></item><item><title><![CDATA[windows10系统修改JDK版本后配置环境变量不生效怎么办]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/101250531</link><guid>https://blog.csdn.net/weixin_30337157/article/details/101250531</guid><author>weixin_30337157</author><pubDate>Mon, 16 Sep 2019 15:03:00 +0800</pubDate><description><![CDATA[之前安装了个jdk8版本，今天突然想安装个更新版本的jdk11来用，但在安装好JDK11并配置环境变量后发现修改JDK版本后配置的环境变量不生效的。本文就给大家分享一下windows10系统修改JDK版本后配置环境变量不生效的具体解决方法。
一、问题
以前安装过安装版的jdk后，配置过环境变量，然后现在更换jdk版本且修改环境变量并不能生效，如原本安装了1.8，现更换为1.7（或其他...]]></description><category></category></item><item><title><![CDATA[pytest系列(四)- pytest+allure+jenkins - 持续集成平台生成allure报告]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102370254</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102370254</guid><author>weixin_30337157</author><pubDate>Thu, 12 Sep 2019 15:57:00 +0800</pubDate><description><![CDATA[pytest是什么
pytest是python的一款测试框架，拥有unittest的功能并比它更丰富。

allure是什么
有非常多的优秀的测试框架，但却是有非常少优秀的报告工具可以展示非常清楚的用例执行过程和结果。
allure是一款开源的，专门用来展示测试结果的工具，目的是希望团队内部每一个人都可以看到非常清楚的测试结果。
allure可以与非常多的著名测试框架做集成...]]></description><category></category></item><item><title><![CDATA[kafka分区分配策略]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441979</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441979</guid><author>weixin_30337157</author><pubDate>Wed, 11 Sep 2019 17:30:00 +0800</pubDate><description><![CDATA[kafka中每个主题一般都会有很多个分区，为了及时消费到数据，我们可能会启动很多个消费者去一个消费topic中的数据。每个分区只能由消费组内的一个消费者去消费。那么，同一个消费组内的消费者是如何确定消费哪些分区的数据呢？
kafka内部中存在两种分配策略：Range和RoundRobin。
kafka分配分区的条件：1）同一个消费组内消费者的新增、关闭或崩溃，2）订阅的主题新增分区。...]]></description><category></category></item><item><title><![CDATA[spark从kafka读取并发问题]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441978</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441978</guid><author>weixin_30337157</author><pubDate>Wed, 11 Sep 2019 10:55:00 +0800</pubDate><description><![CDATA[某些spark分区已经处理完数据，另一些分区还在处理数据，从而导致这个批次的作业消耗时间变长，甚至导致spark作业无法及时消费kafka中的数据。
解决办法：
1）修改kafkaRDD类的getPartition方法：
就是通过设置 topic.partition.subconcurrency 参数，如果这个参数等于1，整个函数的执行效果和之前一样。但是如果这个参数大于1，则之前...]]></description><category></category></item><item><title><![CDATA[hbase中region的大小和数量的重要影响]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441977</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441977</guid><author>weixin_30337157</author><pubDate>Wed, 11 Sep 2019 10:17:00 +0800</pubDate><description><![CDATA[region数量的影响：
通常较少的region可使集群运行的更加平稳，官方指出，每个regionServer大约100个regions的时候效果最佳，理由如下：
1）hbase的一个特性MSLAB，它有助于防止堆内存的碎片化，减轻垃圾回收full gc的问题，默认是开启的。但是每个MenStore需要2MB，如果region过多，就算不储存数据，也会占用很多内存。
2）如果reg...]]></description><category></category></item><item><title><![CDATA[rowkey设计原则]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441976</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441976</guid><author>weixin_30337157</author><pubDate>Tue, 10 Sep 2019 11:25:00 +0800</pubDate><description><![CDATA[rowkey是什么？
rowkey相当于mysql、orcale中的主键，用于标识唯一的行，是完全由用户指定的一串不重复的字符串，hbase的数据永远都是根据rowkey的字典顺序排序的。
Rowkey的作用
1）读写数据时通过rowkey找到对应region；2）MenStore中数据按rowkey排序；3）HFile中数据按rowkey排序。
rowkey对region的影响...]]></description><category></category></item><item><title><![CDATA[hbase数据刷写]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441975</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441975</guid><author>weixin_30337157</author><pubDate>Mon, 09 Sep 2019 10:44:00 +0800</pubDate><description><![CDATA[触发flush操作的条件：
1）region中所有MenStore占用的内存超过相关阈值
当一个region中所有MenStore占用的内存大小超过刷写阈值，会触发一次刷写，hbase.hregion.memstore.flush.size默认值为128M。我们每次调用put、delete都会去检查这个值。
如果我们的数据增加的很快，达到了 hbase.hregion.memst...]]></description><category></category></item><item><title><![CDATA[好题思路集汇]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/101462850</link><guid>https://blog.csdn.net/weixin_30337157/article/details/101462850</guid><author>weixin_30337157</author><pubDate>Thu, 05 Sep 2019 18:16:00 +0800</pubDate><description><![CDATA[慢慢地发现每次打题解会很麻烦而且费时间，这篇博客留作思路汇总，给自己警醒。
游戏 （模拟36）
　　某天T3，思路难点在于把每个状态的点区分出来，也就是拆点，然后在给不同状态的点连边，进行最短路操作。
　　对于图上需要操作走动的点来说，往往不同的状态之间转移会很困难，在实现过程中也很难实现，不如把不同状态的点拆成多个状态互不影响的点，在分别考虑其转移条件，然后在区分对待，这样会使不...]]></description><category></category></item><item><title><![CDATA[win10下安装mathtype出现“无法加载此加载程序 MathPage.wll”]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102450734</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102450734</guid><author>weixin_30337157</author><pubDate>Wed, 04 Sep 2019 17:10:00 +0800</pubDate><description><![CDATA[参考博客：https://blog.csdn.net/m0_37518259/article/details/83755778
问题背景：win10 64位系统，自带的office2019，使用mathtype7.4，安装后在“模板”中添加mathtype模板后，重启word出现“无法加载此加载程序 MathPage.wll”弹窗。
问题关键：哪怕office是64位的，MathPa...]]></description><category></category></item><item><title><![CDATA[hbase不建议有过多列簇]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441974</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441974</guid><author>weixin_30337157</author><pubDate>Wed, 04 Sep 2019 16:02:00 +0800</pubDate><description><![CDATA[hbase本身对支持的列簇没有数量限制，当我们建议列簇一般设在1-3之间。
在hbase中调用API往对应的表中插入数据，会写到MenStore的，而Menstore是一种内存结构，每个列簇对应一个Menstore。
存储在Menstore中的数据在一定条件下会进行Flush操作，每次flush的时候，每个Menstore都会在磁盘中生成一个HFile文件。
然而，Flush操作是...]]></description><category></category></item><item><title><![CDATA[hbase数据加盐读取（协处理器篇）]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441973</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441973</guid><author>weixin_30337157</author><pubDate>Wed, 04 Sep 2019 15:42:00 +0800</pubDate><description><![CDATA[每个region都有startkey和endkey，协处理器的代码是在region上执行，而这些代码在region上执行的时候，我们可以拿到当前region的信息，包括startkey和endkey，然后我们可以用startkey和rowkey拼接，就可以查到我们需要的数据了。
1）定义proto文件：定义这个文件是因为我们查询的时候需要传入参数，如tablename、startkey...]]></description><category></category></item><item><title><![CDATA[hbase数据加盐读取（spark篇）]]></title><link>https://blog.csdn.net/weixin_30337157/article/details/102441972</link><guid>https://blog.csdn.net/weixin_30337157/article/details/102441972</guid><author>weixin_30337157</author><pubDate>Wed, 04 Sep 2019 14:40:00 +0800</pubDate><description><![CDATA[未加盐数据：spark可以使用inputformat、outputformat来读写hbase表。
加盐以后：需要在rowkey之前加一些前缀，否则是查不到数据的。
1）我们需要重新写getsplits方法：从名字我们可以知道是要计算有多少个splits。在hbase中，一个region对用一个split，对应于tablesplit实现类。
tablesplit的构造需要传入sta...]]></description><category></category></item></channel></rss>