-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
861 lines (575 loc) · 41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<script id="hexo-configurations">
var NexT = window.NexT || {};
var CONFIG = {"hostname":"example.com","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
</script>
<meta name="description" content="testone">
<meta property="og:type" content="website">
<meta property="og:title" content="我真的在拉扯了">
<meta property="og:url" content="http://example.com/index.html">
<meta property="og:site_name" content="我真的在拉扯了">
<meta property="og:description" content="testone">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="369">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="http://example.com/">
<script id="page-configurations">
// https://hexo.io/docs/variables.html
CONFIG.page = {
sidebar: "",
isHome : true,
isPost : false,
lang : 'zh-CN'
};
</script>
<title>我真的在拉扯了</title>
<noscript>
<style>
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-header { opacity: initial; }
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion .logo-line-before i { left: initial; }
.use-motion .logo-line-after i { right: initial; }
</style>
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage">
<div class="container use-motion">
<div class="headband"></div>
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="切换导航栏">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<h1 class="site-title">我真的在拉扯了</h1>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="main-menu menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
<span>0%</span>
</div>
<main class="main">
<div class="main-inner">
<div class="content-wrap">
<div class="content index posts-expand">
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/02/13/hadoop%E7%90%86%E8%AE%BA3-HDFS/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="369">
<meta itemprop="description" content="testone">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="我真的在拉扯了">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/02/13/hadoop%E7%90%86%E8%AE%BA3-HDFS/" class="post-title-link" itemprop="url">hadoop基础知识(3) -hdfs</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-02-13 07:07:07 / 修改时间:17:13:20" itemprop="dateCreated datePublished" datetime="2022-02-13T07:07:07+08:00">2022-02-13</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/hadoop/" itemprop="url" rel="index"><span itemprop="name">hadoop</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="HDFS-–Hadoop-Distributed-File-system"><a href="#HDFS-–Hadoop-Distributed-File-system" class="headerlink" title="HDFS –Hadoop Distributed File system"></a>HDFS –Hadoop Distributed File system</h1><p>HDFS是为了解决当今数据量过大单机无法存储的问题。</p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-13-17-00-18-image.png"></p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-13-17-01-32-image.png"></p>
<p>其中 主节点为namenode,其他节点为datanode</p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-13-17-11-54-image.png"></p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-13-17-13-11-image.png"></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/02/10/hadoop%E7%90%86%E8%AE%BA2/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="369">
<meta itemprop="description" content="testone">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="我真的在拉扯了">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/02/10/hadoop%E7%90%86%E8%AE%BA2/" class="post-title-link" itemprop="url">hadoop基础知识学习</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-02-10 07:07:07" itemprop="dateCreated datePublished" datetime="2022-02-10T07:07:07+08:00">2022-02-10</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2022-02-13 17:10:25" itemprop="dateModified" datetime="2022-02-13T17:10:25+08:00">2022-02-13</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/hadoop/" itemprop="url" rel="index"><span itemprop="name">hadoop</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="Hadoop理论2"><a href="#Hadoop理论2" class="headerlink" title="Hadoop理论2"></a>Hadoop理论2</h1><p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-15-12-01-image.png"></p>
<p>其中Hive是Hadoop中的数据仓库,可以做离线批处理的数据分析</p>
<p>Pig是轻量级的流数据分析,其sql语句可以嵌入到其他的语言中</p>
<p>如何选择Linux</p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-17-43-40-image.png"></p>
<p>关于Linux的基础知识</p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-17-45-23-image.png"></p>
<p>三种方式:</p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-17-46-16-image.png"></p>
<ol>
<li><p>单机模式:本地电脑运行</p>
</li>
<li><p>伪分布式: 模拟分布式,但是NameNode和DataNode在同一台机器</p>
</li>
<li><p>分布式:存在namenode和datanode多个节点。</p>
</li>
</ol>
<h5 id="SSH"><a href="#SSH" class="headerlink" title="SSH "></a>SSH <img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-17-56-28-image.png"></h5><h5 id=""><a href="#" class="headerlink" title=""></a></h5><h3 id="NameNode和DataNode"><a href="#NameNode和DataNode" class="headerlink" title="NameNode和DataNode"></a>NameNode和DataNode</h3><p>Name Node和Data Node共同构成了HDFS。NameNode类似于索引,指出每个DataNode的位置</p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-13-15-42-48-image.png"></p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-13-15-44-42-image.png"></p>
<h5 id="-1"><a href="#-1" class="headerlink" title=""></a><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-13-16-48-10-image.png"></h5><h5 id="参考文章及视频"><a href="#参考文章及视频" class="headerlink" title="参考文章及视频"></a>参考文章及视频</h5><ol>
<li>文章内容参考林子雨教授的<a target="_blank" rel="noopener" href="http://dblab.xmu.edu.cn/blog/2630-2/">大数据软件安装和基础编程实践指南(2020年6月版)_厦大数据库实验室博客 (xmu.edu.cn)</a>文章</li>
</ol>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/02/09/hadoop%E7%90%86%E8%AE%BA/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="369">
<meta itemprop="description" content="testone">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="我真的在拉扯了">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/02/09/hadoop%E7%90%86%E8%AE%BA/" class="post-title-link" itemprop="url">hadoop基础知识(1)</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-02-09 07:07:07" itemprop="dateCreated datePublished" datetime="2022-02-09T07:07:07+08:00">2022-02-09</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2022-02-13 17:10:54" itemprop="dateModified" datetime="2022-02-13T17:10:54+08:00">2022-02-13</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/hadoop/" itemprop="url" rel="index"><span itemprop="name">hadoop</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="hadoop理论-1"><a href="#hadoop理论-1" class="headerlink" title="hadoop理论(1)"></a>hadoop理论(1)</h1><h2 id="Hadoop的两大核心"><a href="#Hadoop的两大核心" class="headerlink" title="Hadoop的两大核心"></a>Hadoop的两大核心</h2><ol>
<li><p>HDFS 分布式文件系统 实现了如何存储海量数据</p>
</li>
<li><p>Mapreduce 分布式并行框架 如何并行处理</p>
</li>
</ol>
<h2 id="Hadoop-的特性"><a href="#Hadoop-的特性" class="headerlink" title="Hadoop 的特性"></a>Hadoop 的特性</h2><ul>
<li><p>可靠性 :分布式具体将各个任务分片 partiton,存在实现同一个任务的partition 叫做 冗余集,即即使一个分片出现错误,但是其他分片仍然可以正常的完成任务。</p>
</li>
<li><p>高效性</p>
</li>
<li><p>扩展性:可以增加节点</p>
</li>
<li><p>成本低</p>
</li>
<li><p>多语言</p>
</li>
</ul>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-13-11-10-image.png"></p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-13-13-41-image.png"></p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-13-18-14-image.png"></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/02/08/hadoop%E5%AD%A6%E4%B9%A01/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="369">
<meta itemprop="description" content="testone">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="我真的在拉扯了">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/02/08/hadoop%E5%AD%A6%E4%B9%A01/" class="post-title-link" itemprop="url">hadoop基础知识学习</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-02-08 07:07:07" itemprop="dateCreated datePublished" datetime="2022-02-08T07:07:07+08:00">2022-02-08</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2022-02-13 17:10:22" itemprop="dateModified" datetime="2022-02-13T17:10:22+08:00">2022-02-13</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/hadoop/" itemprop="url" rel="index"><span itemprop="name">hadoop</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="hadoop的前置内容"><a href="#hadoop的前置内容" class="headerlink" title="hadoop的前置内容"></a>hadoop的前置内容</h1><h4 id="问:什么是分布式,什么是单机式,什么是伪分布式"><a href="#问:什么是分布式,什么是单机式,什么是伪分布式" class="headerlink" title="问:什么是分布式,什么是单机式,什么是伪分布式"></a>问:什么是分布式,什么是单机式,什么是伪分布式</h4><h4 id="分布式:若干独立计算机的集合"><a href="#分布式:若干独立计算机的集合" class="headerlink" title="分布式:若干独立计算机的集合"></a>分布式:若干独立计算机的集合</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">分布式相对于集中式而言。对于传统集中式而言处理应用用一台服务器中的资源来处理</span><br><span class="line">而分布式则是将应用细分成为各个模块,各个模块则有多个服务器的资源来解决。</span><br></pre></td></tr></table></figure>
<h4 id="单机式:"><a href="#单机式:" class="headerlink" title="单机式:"></a>单机式:</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">单机式也称集中式,由一台服务器来解决所有问题。在目前中,无法处理较为复杂的问题:</span><br><span class="line">因为解决复杂问题所需要服务器的成本过高,不如通过分布式来分解问题解决。</span><br></pre></td></tr></table></figure>
<h4 id="伪分布式"><a href="#伪分布式" class="headerlink" title="伪分布式"></a>伪分布式</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">伪分布式是在一台机器上模拟出了分布式的这个过程。</span><br></pre></td></tr></table></figure>
<h4 id="hadoop"><a href="#hadoop" class="headerlink" title="hadoop"></a>hadoop</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">hadoop是一个可以对大量数据采用分布式处理的软件框架。</span><br><span class="line">hadoop是实现了Google的云计算的开源系统包括并行计算模型:Map/Reduce</span><br><span class="line">分布式文件系统HDFS以及分布式数据库Hbase。</span><br></pre></td></tr></table></figure>
<h4 id="关于分布式框架的区别"><a href="#关于分布式框架的区别" class="headerlink" title="关于分布式框架的区别"></a>关于分布式框架的区别</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hadoop用于分布式储存和map-reduce计算,Spark用于分布式机器学习,Hive是分布式数据库</span><br><span class="line">Hbaes是分布式kv系统。</span><br></pre></td></tr></table></figure>
<h4 id="按照操作需要在Ubantu创建一个专门为hadoop操作的用户"><a href="#按照操作需要在Ubantu创建一个专门为hadoop操作的用户" class="headerlink" title="按照操作需要在Ubantu创建一个专门为hadoop操作的用户"></a>按照操作需要在Ubantu创建一个专门为hadoop操作的用户</h4><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo useradd -m hadoop -s /bin/bash</span><br></pre></td></tr></table></figure>
<p>上述操作实现了创建一个名为 hadoop的用户并且以 bin/bash 作为shell</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo passwd hadoop</span><br></pre></td></tr></table></figure>
<p>为hadoop用户设置密码</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo adduser hadoop sudo</span><br></pre></td></tr></table></figure>
<p>为我们的hadoop用户开放管理员权限</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install -n</span><br></pre></td></tr></table></figure>
<p>下载软件</p>
<h4 id="Vim操作"><a href="#Vim操作" class="headerlink" title="Vim操作"></a>Vim操作</h4><p>vim的模式有三种:正常模式,插入模式,可视模式</p>
<ol>
<li><p>正常模式:进入vim时就是正常模式。任何模式下按esc可进入正常模式</p>
</li>
<li><p>编辑插入模式,按i键可进入编辑模式</p>
</li>
<li><p>退出前记得保存修改:esc返回正常模式,输入:wq即可。</p>
</li>
</ol>
<h4 id="用ssh来登入"><a href="#用ssh来登入" class="headerlink" title="用ssh来登入"></a>用ssh来登入</h4><p>关于ssh</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">ssh是一种基于应用层的基础安全协议,全名是secure shell。是专门为远程登入会话和其他</span><br><span class="line">网络服务提供的。用ssh可以有效防止远程登入会话中的信息泄露。</span><br></pre></td></tr></table></figure>
<p>两种方式:1.基于口令的安全验证</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">只要你知道你的远程服务器的账号和口令就可以登入,但是会出现登入到其他冒充服务器即</span><br><span class="line">中间人(man in the middle)。</span><br></pre></td></tr></table></figure>
<p>2.基于密钥的验证</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">这种方式为,创建一对密钥,将公共密钥放入服务器中的特定位置,然后访问远程访问服务器时</span><br><span class="line">先获取到服务器中的公共密钥,获取后再将其与本地密钥质询,若与本地公共密钥相同则再使用</span><br><span class="line">私人密钥来解开公共密钥再发送。这种方法虽然登入速度相对于第一种较慢,但是相对安全,不会</span><br><span class="line">出现 man in the middle来攻击。</span><br></pre></td></tr></table></figure>
<p>以上内容总结图片</p>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-11-17-52-12-image.png"></p>
<h5 id="参考文章及视频"><a href="#参考文章及视频" class="headerlink" title="参考文章及视频"></a>参考文章及视频</h5><ol>
<li>文章内容参考林子雨教授的<a target="_blank" rel="noopener" href="http://dblab.xmu.edu.cn/blog/2630-2/">大数据软件安装和基础编程实践指南(2020年6月版)_厦大数据库实验室博客 (xmu.edu.cn)</a>文章</li>
</ol>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://example.com/2022/02/07/%E5%A4%A7%E6%95%B0%E6%8D%AE/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="369">
<meta itemprop="description" content="testone">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="我真的在拉扯了">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2022/02/07/%E5%A4%A7%E6%95%B0%E6%8D%AE/" class="post-title-link" itemprop="url">大数据基础知识学习</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2022-02-07 07:07:07" itemprop="dateCreated datePublished" datetime="2022-02-07T07:07:07+08:00">2022-02-07</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2022-02-13 17:10:28" itemprop="dateModified" datetime="2022-02-13T17:10:28+08:00">2022-02-13</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/hadoop/" itemprop="url" rel="index"><span itemprop="name">hadoop</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="大数据基础学习"><a href="#大数据基础学习" class="headerlink" title="大数据基础学习"></a>大数据基础学习</h1><h2 id="大数据的关键技术"><a href="#大数据的关键技术" class="headerlink" title="大数据的关键技术"></a>大数据的关键技术</h2><ol>
<li><p>批处理计算</p>
<p>最典型的是 MapReduce :将大量数据拿来做批量处理,只要涉及批处理都无法满足秒级响应(即实时性)。Spark也是解决了MapReduce的缺点,可以用来做数据挖掘。</p>
</li>
<li><p>流计算</p>
<p>流数据满足的是实时处理,给出实时响应,否则商业结果就会失去商业价值,不可以分批处理。</p>
</li>
<li><p>图计算:专门处理图中信息的。</p>
</li>
<li><p>查询分析计算</p>
</li>
</ol>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-10-15-47-53-image.png"></p>
<h2 id="云计算"><a href="#云计算" class="headerlink" title="云计算"></a>云计算</h2><p>云计算的特征:虚拟化,用户多</p>
<p>云计算的概念:通过网络给用户提供廉价的IT资源</p>
<p>云计算的三种</p>
<ol>
<li><p>公共云:百度云</p>
</li>
<li><p>私有云:企业内部</p>
</li>
<li><p>混合云:即提供部分给用户,又提供部分给内部</p>
</li>
</ol>
<p><img src="C:\Users\guoxiatong\AppData\Roaming\marktext\images\2022-02-10-16-12-35-image.png"></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="http://example.com/2021/06/22/%E8%80%83%E8%AF%95%E9%A2%98%E7%9B%AE/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.gif">
<meta itemprop="name" content="369">
<meta itemprop="description" content="testone">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="我真的在拉扯了">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/2021/06/22/%E8%80%83%E8%AF%95%E9%A2%98%E7%9B%AE/" class="post-title-link" itemprop="url">编译原理考试</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-06-22 07:07:07" itemprop="dateCreated datePublished" datetime="2021-06-22T07:07:07+08:00">2021-06-22</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2022-01-28 10:59:46" itemprop="dateModified" datetime="2022-01-28T10:59:46+08:00">2022-01-28</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/%E7%BC%96%E8%AF%91%E5%8E%9F%E7%90%86/" itemprop="url" rel="index"><span itemprop="name">编译原理</span></a>
</span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="考试内容"><a href="#考试内容" class="headerlink" title="考试内容"></a>考试内容</h1><h2 id="一-简答题-20分,每题4分"><a href="#一-简答题-20分,每题4分" class="headerlink" title="一.简答题 (20分,每题4分)"></a>一.简答题 (20分,每题4分)</h2><h3 id="1-a-b-a-a-b-a-b-文法表达的内容(这个文法表示了什么特点的字符串)"><a href="#1-a-b-a-a-b-a-b-文法表达的内容(这个文法表示了什么特点的字符串)" class="headerlink" title="1. (a|b)*a(a|b)(a|b) 文法表达的内容(这个文法表示了什么特点的字符串)"></a>1. (a|b)*a(a|b)(a|b) 文法表达的内容(这个文法表示了什么特点的字符串)</h3><h3 id="2-S-gt-0A-01-A-gt-S1-和-A-gt-0A1-01-两个语法是否等价,证明"><a href="#2-S-gt-0A-01-A-gt-S1-和-A-gt-0A1-01-两个语法是否等价,证明" class="headerlink" title="2. S->0A|01 A->S1 和 A->0A1|01 两个语法是否等价,证明"></a>2. S->0A|01 A->S1 和 A->0A1|01 两个语法是否等价,证明</h3><h3 id="3-给出-具体场景-问:适合什么方式的存储-只考了前两个"><a href="#3-给出-具体场景-问:适合什么方式的存储-只考了前两个" class="headerlink" title="3. 给出 具体场景 问:适合什么方式的存储 只考了前两个"></a>3. 给出 具体场景 问:适合什么方式的存储 只考了前两个</h3><h3 id="编译前分配好的-—-静态分配"><a href="#编译前分配好的-—-静态分配" class="headerlink" title="编译前分配好的 — 静态分配"></a>编译前分配好的 — 静态分配</h3><h3 id="运行时动态分配-—-堆式分配"><a href="#运行时动态分配-—-堆式分配" class="headerlink" title="运行时动态分配 — 堆式分配"></a>运行时动态分配 — 堆式分配</h3><h3 id="运行时调用过程-—-栈式分配"><a href="#运行时调用过程-—-栈式分配" class="headerlink" title="运行时调用过程 — 栈式分配"></a>运行时调用过程 — 栈式分配</h3><h3 id="4-编译器有那8个部分组成-并用逻辑图表达出编译器结构"><a href="#4-编译器有那8个部分组成-并用逻辑图表达出编译器结构" class="headerlink" title="4.编译器有那8个部分组成,并用逻辑图表达出编译器结构"></a>4.编译器有那8个部分组成,并用逻辑图表达出编译器结构</h3><h3 id="5-属性的分类,(属性都有什么属性?-继承属性和综合属性)S-gt-X-S-v-X-c-X-a-S-f-按照属性分类"><a href="#5-属性的分类,(属性都有什么属性?-继承属性和综合属性)S-gt-X-S-v-X-c-X-a-S-f-按照属性分类" class="headerlink" title="5.属性的分类,(属性都有什么属性? 继承属性和综合属性)S->X {S.v = X.c,X.a = S.f} 按照属性分类"></a>5.属性的分类,(属性都有什么属性? 继承属性和综合属性)S->X {S.v = X.c,X.a = S.f} 按照属性分类</h3><h2 id="二-分析题(20分)六个小题"><a href="#二-分析题(20分)六个小题" class="headerlink" title="二.分析题(20分)六个小题"></a>二.分析题(20分)六个小题</h2><h2 id="1-有一个是消除左递归"><a href="#1-有一个是消除左递归" class="headerlink" title="1.有一个是消除左递归"></a>1.有一个是消除左递归</h2><h2 id="2-分析文法是否有二义性"><a href="#2-分析文法是否有二义性" class="headerlink" title="2.分析文法是否有二义性"></a>2.分析文法是否有二义性</h2><h2 id="3-最右推导-短语-直接短语-语法分析树"><a href="#3-最右推导-短语-直接短语-语法分析树" class="headerlink" title="3.最右推导+短语+直接短语+语法分析树"></a>3.最右推导+短语+直接短语+语法分析树</h2><h2 id="4-给出正规式画FA"><a href="#4-给出正规式画FA" class="headerlink" title="4.给出正规式画FA"></a>4.给出正规式画FA</h2><h2 id="5-给出算式的逆波兰式表达和四元式"><a href="#5-给出算式的逆波兰式表达和四元式" class="headerlink" title="5.给出算式的逆波兰式表达和四元式"></a>5.给出算式的逆波兰式表达和四元式</h2><h2 id="三-计算题(40分)"><a href="#三-计算题(40分)" class="headerlink" title="三 计算题(40分)"></a>三 计算题(40分)</h2><h2 id="1-LL1文法找select集(6分)和状态预测表(7分)"><a href="#1-LL1文法找select集(6分)和状态预测表(7分)" class="headerlink" title="1.LL1文法找select集(6分)和状态预测表(7分)"></a>1.LL1文法找select集(6分)和状态预测表(7分)</h2><h2 id="2-(1)LR-1-的DFA可识别前缀图,找出其冲突,并说明其冲突类型(2)分析其为什么不是LR(1)文法,给出解析。(12分)"><a href="#2-(1)LR-1-的DFA可识别前缀图,找出其冲突,并说明其冲突类型(2)分析其为什么不是LR(1)文法,给出解析。(12分)" class="headerlink" title="2.(1)LR(1)的DFA可识别前缀图,找出其冲突,并说明其冲突类型(2)分析其为什么不是LR(1)文法,给出解析。(12分)"></a>2.(1)LR(1)的DFA可识别前缀图,找出其冲突,并说明其冲突类型(2)分析其为什么不是LR(1)文法,给出解析。(12分)</h2><h2 id="3-将-a-b-ab-a-b-化为最简DFA(15分)"><a href="#3-将-a-b-ab-a-b-化为最简DFA(15分)" class="headerlink" title="3.将(a*|b*)* ab (a|b)*化为最简DFA(15分)"></a>3.将(a*|b*)* ab (a|b)*化为最简DFA(15分)</h2><h2 id="四-编程题"><a href="#四-编程题" class="headerlink" title="四 编程题"></a>四 编程题</h2><h2 id="1-E-gt-E-T-T-2-T-gt-T-F-F-3-F-gt-E-i-(已给出了Gen函数,NewTemp-函数,Entry函数的解析)-(10分)"><a href="#1-E-gt-E-T-T-2-T-gt-T-F-F-3-F-gt-E-i-(已给出了Gen函数,NewTemp-函数,Entry函数的解析)-(10分)" class="headerlink" title="(1).E->E+T|T (2)T->T/F|F (3)F->(E)|i (已给出了Gen函数,NewTemp()函数,Entry函数的解析) (10分)"></a>(1).E->E+T|T (2)T->T/F|F (3)F->(E)|i (已给出了Gen函数,NewTemp()函数,Entry函数的解析) (10分)</h2>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
</div>
<script>
window.addEventListener('tabs:register', () => {
let { activeClass } = CONFIG.comments;
if (CONFIG.comments.storage) {
activeClass = localStorage.getItem('comments_active') || activeClass;
}
if (activeClass) {
let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
if (activeTab) {
activeTab.click();
}
}
});
if (CONFIG.comments.storage) {
window.addEventListener('tabs:click', event => {
if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
let commentClass = event.target.classList[1];
localStorage.setItem('comments_active', commentClass);
});
}
</script>
</div>
<div class="toggle sidebar-toggle">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
<aside class="sidebar">
<div class="sidebar-inner">
<ul class="sidebar-nav motion-element">
<li class="sidebar-nav-toc">
文章目录
</li>
<li class="sidebar-nav-overview">
站点概览
</li>
</ul>
<!--noindex-->
<div class="post-toc-wrap sidebar-panel">
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<p class="site-author-name" itemprop="name">369</p>
<div class="site-description" itemprop="description">testone</div>
</div>
<div class="site-state-wrap motion-element">
<nav class="site-state">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">6</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<span class="site-state-item-count">2</span>
<span class="site-state-item-name">分类</span>
</div>
<div class="site-state-item site-state-tags">
<span class="site-state-item-count">5</span>
<span class="site-state-item-name">标签</span>
</div>
</nav>
</div>
</div>
</div>
</aside>
<div id="sidebar-dimmer"></div>
</div>
</main>
<footer class="footer">
<div class="footer-inner">
<div class="copyright">
©
<span itemprop="copyrightYear">2022</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">369</span>
</div>
<div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> 强力驱动
</div>
</div>
</footer>
</div>
<script src="/lib/anime.min.js"></script>
<script src="/lib/velocity/velocity.min.js"></script>
<script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/motion.js"></script>
<script src="/js/schemes/muse.js"></script>
<script src="/js/next-boot.js"></script>
</body>
</html>