0x90e's Blog

Chase Excellence,
Sucess will follow.


  • Home

  • Tags

  • Categories

  • Archives

Django Launch and Request Flow

Posted on 2019-02-03 | In Django

Django Launch and Request Flow

Basic information

  • Django version: 2.1

Django launch flow

PEP 3333

  • PEP 3333
    • 制定Web Server與Python web applications/frameworks的介面標準
      Read more »

Python Decorator

Posted on 2018-09-19 | In Python

Python Decorator

Why Decorator

試想一個場景,如何在不變動下述程式片段的情況下,在進入Function時,印出Function名稱?

1
2
def foo():
print('Hello foo!')

Read more »

Python GIL(Global Interpreter Lock)

Posted on 2018-07-31 | In Python

Python GIL(Global Interpreter Lock)

本文將介紹GIL是什麼,為什麼存在,對Python的影響是什麼,以及一些歷史演進。
本文主要參考David Beazley的2篇分享Inside the Python GIL與Inside the New GIL

Read more »

Create and Launch Android Virtrual Device via Command

Posted on 2018-06-14 | In Android

Create and Launch Android Virtrual Device via Command

Basic Infomation

  • OS: Ubuntu 16.4 LTS
  • Android System Image: android_24_armeabi-v7a

Introduction

正常步驟下,會使用Android Studio中的AVD(Android Virtrual Device) Manager管理與啓動Android emulator,
但有時需透過Terminal的方式達到相同的目的,例如自動化沙箱

Read more »

Setup Raspberry Pi Using a Mac

Posted on 2018-06-14 | In Misc

Setup Raspberry Pi Using a Mac

Basic Infomation

  • OS: macOS High Sierra
  • Raspberry Pi device: Raspberry Pi model B, 1GB RAM, 802.11b/g/n, Wireless LAN, Bluetooth 4.1
  • Raspberry OS: Raspbian stretch lite 2018-04-18
  • SD card: SanDisk Ultra 32GB
Read more »

Download Android Source Code and Build

Posted on 2018-05-22 | In Android

Download Android Source Code and Build

Basic Infomation

  • OS: Ubuntu 16.4 LTS
  • Android Branch: android-7.1.2_r33
  • Device: Google Pixel One
    Read more »

Spark on YARN Deployment Modes

Posted on 2018-04-18 | In Big data

Spark on YARN Deployment Modes

YARN Client mode

  • ① YARN Client向ResourceManager提交申請
  • ② ResourceManager接收到請求後,在集群中選擇一個NodeManager分配Container,並在Container中啟動ApplicationMaster process
    • Dirver process在YARN client上運行,並初始化Spark Context
  • ③ Spark Context初始完後,與ApplicationMaster進行溝通,透過ApplicationMaster向ResourceManager申請Container,ResourceManager收到請求後,在集群中選擇一個NodeManager分配Container
  • ④ ApplicationMaster通知NodeManager在Container中啟動Spark executor
  • ⑤ Spark executor向Driver註冊,並在之後將自身狀態回報給Driver
  • ⑥ Spark Context將Task分配給Spark executor
  • ⑦ 所有Task執行結束,YARN Client向ResourceManager提交註銷ApplicationMaster
    Read more »

Launching Spark Application on Yarn Cluster

Posted on 2018-04-17 | In Big data

Launching Spark Application on Yarn Cluster

New Scala Project

使用IDEA依序建立Scala project

Read more »

Launching Spark on YARN

Posted on 2018-03-30 | In Big data

Launching Spark on YARN

  • Launching Spark on YARN

Launching YARN

1
2
3
4
5
[hadoop@testmain ~]$ cd $HADOOP_HOME
[hadoop@testmain hadoop]$ ./sbin/start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /opt/software/hadoop-2.8.1/logs/yarn-hadoop-resourcemanager-testmain.out
localhost: starting nodemanager, logging to /opt/software/hadoop-2.8.1/logs/yarn-hadoop-nodemanager-testmain.out
Read more »

spark_core_monitoring_and_instrumentation

Posted on 2018-03-24 | In Big data

Spark Monitoring and Instrumentation

  • Spark monitoring
  • 每個SparkContext啟動,皆會啟動Web UI,預設在4040端口上,若4040端口被佔用則往上累加
  • 該Web UI包含了許多資訊,當中包含執行過程和調優的訊息
    Read more »
123…7
0x90e

0x90e

64 posts
8 categories
25 tags
E-Mail GitHub
© 2016 — 2020 0x90e
Powered by Hexo
|
Theme — NexT.Pisces v5.1.3
Unique Visitor Page View