{"action":"created","comment":{"url":"https://api.github.com/repos/pingcap/blog/pulls/comments/194130465","pull_request_review_id":127252237,"id":194130465,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDEzMDQ2NQ==","diff_hunk":"@@ -0,0 +1,251 @@\n+---\n+title: How To Spin Up an HTAP Database in 5 Minutes with TiDB + TiSpark\n+author: ['Queeny Jin']\n+date: 2018-06-08\n+summary: In this 5-minute tutorial for beginners, we will show you how to spin up a standard TiDB cluster using Docker Compose on your local computer, so you can get a taste of its hybrid power, before using it for work or your own project in production.\n+tags: ['TiDB', 'TiSpark', 'HTAP', 'Tutorial']\n+---\n+\n+[TiDB](http://bit.ly/tidb_repo_publication) is an open-source distributed Hybrid Transactional and Analytical Processing (HTAP) database built by PingCAP, powering companies to do real-time data analytics on live transactional data in the same data warehouse -- no more ETL, no more T+1, no more delays. More than 200 companies are now using TiDB in production. Its 2.0 version was launched in late April 2018 (read about it in [this blog post](http://bit.ly/tidb_2_0)).\n+\n+In this 5-minute tutorial, we will show you how to spin up a standard TiDB cluster using Docker Compose on your local computer, so you can get a taste of its hybrid power, before using it for work or your own project in production. A standard TiDB cluster includes TiDB (MySQL compatible stateless SQL layer), [TiKV](http://bit.ly/tikv_repo_publication) (a distributed transactional key-value store where the data is stored), and [TiSpark](https://github.com/pingcap/tispark) (an Apache Spark plug-in that powers complex analytical queries within the TiDB ecosystem). \n+\n+> NOTE: This guide is for Mac users; we will release a guide for Linux and Windows users soon!\n+\n+Ready? Let’s get started!\n+\n+# Setting Up:\n+\n+Before we start deploying TiDB, we’ll need a few things first: `Brew`, `wget`, Docker, and MySQL. If you don’t have them installed already, here are the instructions to get them.","path":"how_to_spin_up_an_htap_database_in_5_minutes_with_tidb_tispark.md","position":19,"original_position":19,"commit_id":"10b4663268f3460788e898e1adceac6f77946395","original_commit_id":"10b4663268f3460788e898e1adceac6f77946395","user":{"login":"gregwebs","id":1183,"node_id":"MDQ6VXNlcjExODM=","avatar_url":"https://avatars2.githubusercontent.com/u/1183?v=4","gravatar_id":"","url":"https://api.github.com/users/gregwebs","html_url":"https://github.com/gregwebs","followers_url":"https://api.github.com/users/gregwebs/followers","following_url":"https://api.github.com/users/gregwebs/following{/other_user}","gists_url":"https://api.github.com/users/gregwebs/gists{/gist_id}","starred_url":"https://api.github.com/users/gregwebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregwebs/subscriptions","organizations_url":"https://api.github.com/users/gregwebs/orgs","repos_url":"https://api.github.com/users/gregwebs/repos","events_url":"https://api.github.com/users/gregwebs/events{/privacy}","received_events_url":"https://api.github.com/users/gregwebs/received_events","type":"User","site_admin":false},"body":"lowercase `brew` here and below","created_at":"2018-06-08T17:37:49Z","updated_at":"2018-06-08T17:46:38Z","html_url":"https://github.com/pingcap/blog/pull/31#discussion_r194130465","pull_request_url":"https://api.github.com/repos/pingcap/blog/pulls/31","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/pingcap/blog/pulls/comments/194130465"},"html":{"href":"https://github.com/pingcap/blog/pull/31#discussion_r194130465"},"pull_request":{"href":"https://api.github.com/repos/pingcap/blog/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/pingcap/blog/pulls/31","id":193505007,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNTA1MDA3","html_url":"https://github.com/pingcap/blog/pull/31","diff_url":"https://github.com/pingcap/blog/pull/31.diff","patch_url":"https://github.com/pingcap/blog/pull/31.patch","issue_url":"https://api.github.com/repos/pingcap/blog/issues/31","number":31,"state":"open","locked":false,"title":"Add a new post","user":{"login":"queenypingcap","id":19528243,"node_id":"MDQ6VXNlcjE5NTI4MjQz","avatar_url":"https://avatars2.githubusercontent.com/u/19528243?v=4","gravatar_id":"","url":"https://api.github.com/users/queenypingcap","html_url":"https://github.com/queenypingcap","followers_url":"https://api.github.com/users/queenypingcap/followers","following_url":"https://api.github.com/users/queenypingcap/following{/other_user}","gists_url":"https://api.github.com/users/queenypingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/queenypingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/queenypingcap/subscriptions","organizations_url":"https://api.github.com/users/queenypingcap/orgs","repos_url":"https://api.github.com/users/queenypingcap/repos","events_url":"https://api.github.com/users/queenypingcap/events{/privacy}","received_events_url":"https://api.github.com/users/queenypingcap/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-08T04:16:59Z","updated_at":"2018-06-08T17:46:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec3f90956673c92eac482829018aef20ace0b6fa","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pingcap/blog/pulls/31/commits","review_comments_url":"https://api.github.com/repos/pingcap/blog/pulls/31/comments","review_comment_url":"https://api.github.com/repos/pingcap/blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pingcap/blog/issues/31/comments","statuses_url":"https://api.github.com/repos/pingcap/blog/statuses/10b4663268f3460788e898e1adceac6f77946395","head":{"label":"pingcap:queenypingcap-patch-1","ref":"queenypingcap-patch-1","sha":"10b4663268f3460788e898e1adceac6f77946395","user":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"repo":{"id":73154869,"node_id":"MDEwOlJlcG9zaXRvcnk3MzE1NDg2OQ==","name":"blog","full_name":"pingcap/blog","owner":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pingcap/blog","description":null,"fork":false,"url":"https://api.github.com/repos/pingcap/blog","forks_url":"https://api.github.com/repos/pingcap/blog/forks","keys_url":"https://api.github.com/repos/pingcap/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/blog/teams","hooks_url":"https://api.github.com/repos/pingcap/blog/hooks","issue_events_url":"https://api.github.com/repos/pingcap/blog/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/blog/events","assignees_url":"https://api.github.com/repos/pingcap/blog/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/blog/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/blog/tags","blobs_url":"https://api.github.com/repos/pingcap/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/blog/languages","stargazers_url":"https://api.github.com/repos/pingcap/blog/stargazers","contributors_url":"https://api.github.com/repos/pingcap/blog/contributors","subscribers_url":"https://api.github.com/repos/pingcap/blog/subscribers","subscription_url":"https://api.github.com/repos/pingcap/blog/subscription","commits_url":"https://api.github.com/repos/pingcap/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/blog/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/blog/merges","archive_url":"https://api.github.com/repos/pingcap/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/blog/downloads","issues_url":"https://api.github.com/repos/pingcap/blog/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/blog/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/blog/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/blog/deployments","created_at":"2016-11-08T06:09:12Z","updated_at":"2018-04-24T08:56:56Z","pushed_at":"2018-06-08T05:43:47Z","git_url":"git://github.com/pingcap/blog.git","ssh_url":"git@github.com:pingcap/blog.git","clone_url":"https://github.com/pingcap/blog.git","svn_url":"https://github.com/pingcap/blog","homepage":"https://pingcap.github.io/blog/","size":52953,"stargazers_count":7,"watchers_count":7,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":7,"open_issues":1,"watchers":7,"default_branch":"master"}},"base":{"label":"pingcap:hugo-refactor","ref":"hugo-refactor","sha":"4556cf6184badd6bce1f952d798921ca31576f8d","user":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"repo":{"id":73154869,"node_id":"MDEwOlJlcG9zaXRvcnk3MzE1NDg2OQ==","name":"blog","full_name":"pingcap/blog","owner":{"login":"pingcap","id":11855343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODU1MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/11855343?v=4","gravatar_id":"","url":"https://api.github.com/users/pingcap","html_url":"https://github.com/pingcap","followers_url":"https://api.github.com/users/pingcap/followers","following_url":"https://api.github.com/users/pingcap/following{/other_user}","gists_url":"https://api.github.com/users/pingcap/gists{/gist_id}","starred_url":"https://api.github.com/users/pingcap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pingcap/subscriptions","organizations_url":"https://api.github.com/users/pingcap/orgs","repos_url":"https://api.github.com/users/pingcap/repos","events_url":"https://api.github.com/users/pingcap/events{/privacy}","received_events_url":"https://api.github.com/users/pingcap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pingcap/blog","description":null,"fork":false,"url":"https://api.github.com/repos/pingcap/blog","forks_url":"https://api.github.com/repos/pingcap/blog/forks","keys_url":"https://api.github.com/repos/pingcap/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pingcap/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pingcap/blog/teams","hooks_url":"https://api.github.com/repos/pingcap/blog/hooks","issue_events_url":"https://api.github.com/repos/pingcap/blog/issues/events{/number}","events_url":"https://api.github.com/repos/pingcap/blog/events","assignees_url":"https://api.github.com/repos/pingcap/blog/assignees{/user}","branches_url":"https://api.github.com/repos/pingcap/blog/branches{/branch}","tags_url":"https://api.github.com/repos/pingcap/blog/tags","blobs_url":"https://api.github.com/repos/pingcap/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pingcap/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pingcap/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/pingcap/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pingcap/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/pingcap/blog/languages","stargazers_url":"https://api.github.com/repos/pingcap/blog/stargazers","contributors_url":"https://api.github.com/repos/pingcap/blog/contributors","subscribers_url":"https://api.github.com/repos/pingcap/blog/subscribers","subscription_url":"https://api.github.com/repos/pingcap/blog/subscription","commits_url":"https://api.github.com/repos/pingcap/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/pingcap/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/pingcap/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/pingcap/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/pingcap/blog/contents/{+path}","compare_url":"https://api.github.com/repos/pingcap/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pingcap/blog/merges","archive_url":"https://api.github.com/repos/pingcap/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pingcap/blog/downloads","issues_url":"https://api.github.com/repos/pingcap/blog/issues{/number}","pulls_url":"https://api.github.com/repos/pingcap/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/pingcap/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/pingcap/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pingcap/blog/labels{/name}","releases_url":"https://api.github.com/repos/pingcap/blog/releases{/id}","deployments_url":"https://api.github.com/repos/pingcap/blog/deployments","created_at":"2016-11-08T06:09:12Z","updated_at":"2018-04-24T08:56:56Z","pushed_at":"2018-06-08T05:43:47Z","git_url":"git://github.com/pingcap/blog.git","ssh_url":"git@github.com:pingcap/blog.git","clone_url":"https://github.com/pingcap/blog.git","svn_url":"https://github.com/pingcap/blog","homepage":"https://pingcap.github.io/blog/","size":52953,"stargazers_count":7,"watchers_count":7,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":7,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pingcap/blog/pulls/31"},"html":{"href":"https://github.com/pingcap/blog/pull/31"},"issue":{"href":"https://api.github.com/repos/pingcap/blog/issues/31"},"comments":{"href":"https://api.github.com/repos/pingcap/blog/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/pingcap/blog/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/pingcap/blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pingcap/blog/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/pingcap/blog/statuses/10b4663268f3460788e898e1adceac6f77946395"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gregwebs"}}