{"action":"created","comment":{"url":"https://api.github.com/repos/smartdata-x/wokong/pulls/comments/72384292","id":72384292,"diff_hunk":"@@ -0,0 +1,488 @@\n+package com.kunyan.companyinfo\n+\n+import java.io.{File, PrintWriter}\n+import java.sql.{PreparedStatement, DriverManager}\n+import com.kunyan.companyinfo.db.DbConnection\n+import com.kunyan.companyinfo.parser.{stockHolderSql, CpnyExecutiveSql, CpnyInstructureSql, CapitalStructureSql}\n+import org.apache.hadoop.hbase.{TableName, HBaseConfiguration}\n+\n+import scala.collection.mutable.ListBuffer\n+import scala.io.Source\n+import scala.xml.XML\n+\n+/**\n+  * Created by niujiaojiao on 2016/7/21.\n+  * 主程序入口\n+  */\n+object Scheduler {\n+\n+  /**\n+    * 主程序操作 四个部分 八个表写入数据库，从hbase表的相应表名读取字符串\n+    *\n+    * @param args\n+    */\n+  def main(args: Array[String]): Unit = {\n+\n+    val configFile = XML.loadFile(\"E:/wokong/companyinfo/src/main/resources/configFile.xml\")","path":"companyinfo/src/main/scala/com/kunyan/companyinfo/Scheduler.scala","position":26,"original_position":26,"commit_id":"7a5d31a96266c316ba69f4a8c7cb88b9aeecf5a6","original_commit_id":"7a5d31a96266c316ba69f4a8c7cb88b9aeecf5a6","user":{"login":"ysrotciv","id":4523603,"avatar_url":"https://avatars.githubusercontent.com/u/4523603?v=3","gravatar_id":"","url":"https://api.github.com/users/ysrotciv","html_url":"https://github.com/ysrotciv","followers_url":"https://api.github.com/users/ysrotciv/followers","following_url":"https://api.github.com/users/ysrotciv/following{/other_user}","gists_url":"https://api.github.com/users/ysrotciv/gists{/gist_id}","starred_url":"https://api.github.com/users/ysrotciv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysrotciv/subscriptions","organizations_url":"https://api.github.com/users/ysrotciv/orgs","repos_url":"https://api.github.com/users/ysrotciv/repos","events_url":"https://api.github.com/users/ysrotciv/events{/privacy}","received_events_url":"https://api.github.com/users/ysrotciv/received_events","type":"User","site_admin":false},"body":"改成相对路径或者用类似getResource的方法","created_at":"2016-07-27T05:55:03Z","updated_at":"2016-07-27T05:55:03Z","html_url":"https://github.com/smartdata-x/wokong/pull/37#discussion_r72384292","pull_request_url":"https://api.github.com/repos/smartdata-x/wokong/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/smartdata-x/wokong/pulls/comments/72384292"},"html":{"href":"https://github.com/smartdata-x/wokong/pull/37#discussion_r72384292"},"pull_request":{"href":"https://api.github.com/repos/smartdata-x/wokong/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/smartdata-x/wokong/pulls/37","id":78824686,"html_url":"https://github.com/smartdata-x/wokong/pull/37","diff_url":"https://github.com/smartdata-x/wokong/pull/37.diff","patch_url":"https://github.com/smartdata-x/wokong/pull/37.patch","issue_url":"https://api.github.com/repos/smartdata-x/wokong/issues/37","number":37,"state":"open","locked":false,"title":"A股信息采集 写入数据库","user":{"login":"anneniu","id":16929861,"avatar_url":"https://avatars.githubusercontent.com/u/16929861?v=3","gravatar_id":"","url":"https://api.github.com/users/anneniu","html_url":"https://github.com/anneniu","followers_url":"https://api.github.com/users/anneniu/followers","following_url":"https://api.github.com/users/anneniu/following{/other_user}","gists_url":"https://api.github.com/users/anneniu/gists{/gist_id}","starred_url":"https://api.github.com/users/anneniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anneniu/subscriptions","organizations_url":"https://api.github.com/users/anneniu/orgs","repos_url":"https://api.github.com/users/anneniu/repos","events_url":"https://api.github.com/users/anneniu/events{/privacy}","received_events_url":"https://api.github.com/users/anneniu/received_events","type":"User","site_admin":false},"body":"(解决的bug和新增的特性至少要填写一项)\r\n解决的bug:\r\n\r\n新增的特性:\r\n1》A股信息采集写入Hbase 表\r\n2》 从hbase 表读取写入数据库中八个表\r\n\r\n补充:\r\n","created_at":"2016-07-26T10:08:37Z","updated_at":"2016-07-27T05:55:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a05cb4064b9d3a9151ad80a0307208c05524df0f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/smartdata-x/wokong/pulls/37/commits","review_comments_url":"https://api.github.com/repos/smartdata-x/wokong/pulls/37/comments","review_comment_url":"https://api.github.com/repos/smartdata-x/wokong/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smartdata-x/wokong/issues/37/comments","statuses_url":"https://api.github.com/repos/smartdata-x/wokong/statuses/7a5d31a96266c316ba69f4a8c7cb88b9aeecf5a6","head":{"label":"anneniu:company","ref":"company","sha":"7a5d31a96266c316ba69f4a8c7cb88b9aeecf5a6","user":{"login":"anneniu","id":16929861,"avatar_url":"https://avatars.githubusercontent.com/u/16929861?v=3","gravatar_id":"","url":"https://api.github.com/users/anneniu","html_url":"https://github.com/anneniu","followers_url":"https://api.github.com/users/anneniu/followers","following_url":"https://api.github.com/users/anneniu/following{/other_user}","gists_url":"https://api.github.com/users/anneniu/gists{/gist_id}","starred_url":"https://api.github.com/users/anneniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anneniu/subscriptions","organizations_url":"https://api.github.com/users/anneniu/orgs","repos_url":"https://api.github.com/users/anneniu/repos","events_url":"https://api.github.com/users/anneniu/events{/privacy}","received_events_url":"https://api.github.com/users/anneniu/received_events","type":"User","site_admin":false},"repo":{"id":63763933,"name":"wokong","full_name":"anneniu/wokong","owner":{"login":"anneniu","id":16929861,"avatar_url":"https://avatars.githubusercontent.com/u/16929861?v=3","gravatar_id":"","url":"https://api.github.com/users/anneniu","html_url":"https://github.com/anneniu","followers_url":"https://api.github.com/users/anneniu/followers","following_url":"https://api.github.com/users/anneniu/following{/other_user}","gists_url":"https://api.github.com/users/anneniu/gists{/gist_id}","starred_url":"https://api.github.com/users/anneniu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anneniu/subscriptions","organizations_url":"https://api.github.com/users/anneniu/orgs","repos_url":"https://api.github.com/users/anneniu/repos","events_url":"https://api.github.com/users/anneniu/events{/privacy}","received_events_url":"https://api.github.com/users/anneniu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anneniu/wokong","description":"计算平台","fork":true,"url":"https://api.github.com/repos/anneniu/wokong","forks_url":"https://api.github.com/repos/anneniu/wokong/forks","keys_url":"https://api.github.com/repos/anneniu/wokong/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anneniu/wokong/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anneniu/wokong/teams","hooks_url":"https://api.github.com/repos/anneniu/wokong/hooks","issue_events_url":"https://api.github.com/repos/anneniu/wokong/issues/events{/number}","events_url":"https://api.github.com/repos/anneniu/wokong/events","assignees_url":"https://api.github.com/repos/anneniu/wokong/assignees{/user}","branches_url":"https://api.github.com/repos/anneniu/wokong/branches{/branch}","tags_url":"https://api.github.com/repos/anneniu/wokong/tags","blobs_url":"https://api.github.com/repos/anneniu/wokong/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anneniu/wokong/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anneniu/wokong/git/refs{/sha}","trees_url":"https://api.github.com/repos/anneniu/wokong/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anneniu/wokong/statuses/{sha}","languages_url":"https://api.github.com/repos/anneniu/wokong/languages","stargazers_url":"https://api.github.com/repos/anneniu/wokong/stargazers","contributors_url":"https://api.github.com/repos/anneniu/wokong/contributors","subscribers_url":"https://api.github.com/repos/anneniu/wokong/subscribers","subscription_url":"https://api.github.com/repos/anneniu/wokong/subscription","commits_url":"https://api.github.com/repos/anneniu/wokong/commits{/sha}","git_commits_url":"https://api.github.com/repos/anneniu/wokong/git/commits{/sha}","comments_url":"https://api.github.com/repos/anneniu/wokong/comments{/number}","issue_comment_url":"https://api.github.com/repos/anneniu/wokong/issues/comments{/number}","contents_url":"https://api.github.com/repos/anneniu/wokong/contents/{+path}","compare_url":"https://api.github.com/repos/anneniu/wokong/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anneniu/wokong/merges","archive_url":"https://api.github.com/repos/anneniu/wokong/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anneniu/wokong/downloads","issues_url":"https://api.github.com/repos/anneniu/wokong/issues{/number}","pulls_url":"https://api.github.com/repos/anneniu/wokong/pulls{/number}","milestones_url":"https://api.github.com/repos/anneniu/wokong/milestones{/number}","notifications_url":"https://api.github.com/repos/anneniu/wokong/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anneniu/wokong/labels{/name}","releases_url":"https://api.github.com/repos/anneniu/wokong/releases{/id}","deployments_url":"https://api.github.com/repos/anneniu/wokong/deployments","created_at":"2016-07-20T08:23:19Z","updated_at":"2016-07-20T08:23:20Z","pushed_at":"2016-07-26T10:06:14Z","git_url":"git://github.com/anneniu/wokong.git","ssh_url":"git@github.com:anneniu/wokong.git","clone_url":"https://github.com/anneniu/wokong.git","svn_url":"https://github.com/anneniu/wokong","homepage":null,"size":61518,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"smartdata-x:master","ref":"master","sha":"468f62e2f3ce1e710d30f345a500b0971d83df5a","user":{"login":"smartdata-x","id":9653313,"avatar_url":"https://avatars.githubusercontent.com/u/9653313?v=3","gravatar_id":"","url":"https://api.github.com/users/smartdata-x","html_url":"https://github.com/smartdata-x","followers_url":"https://api.github.com/users/smartdata-x/followers","following_url":"https://api.github.com/users/smartdata-x/following{/other_user}","gists_url":"https://api.github.com/users/smartdata-x/gists{/gist_id}","starred_url":"https://api.github.com/users/smartdata-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartdata-x/subscriptions","organizations_url":"https://api.github.com/users/smartdata-x/orgs","repos_url":"https://api.github.com/users/smartdata-x/repos","events_url":"https://api.github.com/users/smartdata-x/events{/privacy}","received_events_url":"https://api.github.com/users/smartdata-x/received_events","type":"Organization","site_admin":false},"repo":{"id":46981381,"name":"wokong","full_name":"smartdata-x/wokong","owner":{"login":"smartdata-x","id":9653313,"avatar_url":"https://avatars.githubusercontent.com/u/9653313?v=3","gravatar_id":"","url":"https://api.github.com/users/smartdata-x","html_url":"https://github.com/smartdata-x","followers_url":"https://api.github.com/users/smartdata-x/followers","following_url":"https://api.github.com/users/smartdata-x/following{/other_user}","gists_url":"https://api.github.com/users/smartdata-x/gists{/gist_id}","starred_url":"https://api.github.com/users/smartdata-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartdata-x/subscriptions","organizations_url":"https://api.github.com/users/smartdata-x/orgs","repos_url":"https://api.github.com/users/smartdata-x/repos","events_url":"https://api.github.com/users/smartdata-x/events{/privacy}","received_events_url":"https://api.github.com/users/smartdata-x/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smartdata-x/wokong","description":"计算平台","fork":false,"url":"https://api.github.com/repos/smartdata-x/wokong","forks_url":"https://api.github.com/repos/smartdata-x/wokong/forks","keys_url":"https://api.github.com/repos/smartdata-x/wokong/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartdata-x/wokong/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartdata-x/wokong/teams","hooks_url":"https://api.github.com/repos/smartdata-x/wokong/hooks","issue_events_url":"https://api.github.com/repos/smartdata-x/wokong/issues/events{/number}","events_url":"https://api.github.com/repos/smartdata-x/wokong/events","assignees_url":"https://api.github.com/repos/smartdata-x/wokong/assignees{/user}","branches_url":"https://api.github.com/repos/smartdata-x/wokong/branches{/branch}","tags_url":"https://api.github.com/repos/smartdata-x/wokong/tags","blobs_url":"https://api.github.com/repos/smartdata-x/wokong/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartdata-x/wokong/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartdata-x/wokong/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartdata-x/wokong/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartdata-x/wokong/statuses/{sha}","languages_url":"https://api.github.com/repos/smartdata-x/wokong/languages","stargazers_url":"https://api.github.com/repos/smartdata-x/wokong/stargazers","contributors_url":"https://api.github.com/repos/smartdata-x/wokong/contributors","subscribers_url":"https://api.github.com/repos/smartdata-x/wokong/subscribers","subscription_url":"https://api.github.com/repos/smartdata-x/wokong/subscription","commits_url":"https://api.github.com/repos/smartdata-x/wokong/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartdata-x/wokong/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartdata-x/wokong/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartdata-x/wokong/issues/comments{/number}","contents_url":"https://api.github.com/repos/smartdata-x/wokong/contents/{+path}","compare_url":"https://api.github.com/repos/smartdata-x/wokong/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartdata-x/wokong/merges","archive_url":"https://api.github.com/repos/smartdata-x/wokong/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartdata-x/wokong/downloads","issues_url":"https://api.github.com/repos/smartdata-x/wokong/issues{/number}","pulls_url":"https://api.github.com/repos/smartdata-x/wokong/pulls{/number}","milestones_url":"https://api.github.com/repos/smartdata-x/wokong/milestones{/number}","notifications_url":"https://api.github.com/repos/smartdata-x/wokong/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartdata-x/wokong/labels{/name}","releases_url":"https://api.github.com/repos/smartdata-x/wokong/releases{/id}","deployments_url":"https://api.github.com/repos/smartdata-x/wokong/deployments","created_at":"2015-11-27T13:21:32Z","updated_at":"2016-06-24T07:22:02Z","pushed_at":"2016-07-26T10:08:37Z","git_url":"git://github.com/smartdata-x/wokong.git","ssh_url":"git@github.com:smartdata-x/wokong.git","clone_url":"https://github.com/smartdata-x/wokong.git","svn_url":"https://github.com/smartdata-x/wokong","homepage":null,"size":61548,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smartdata-x/wokong/pulls/37"},"html":{"href":"https://github.com/smartdata-x/wokong/pull/37"},"issue":{"href":"https://api.github.com/repos/smartdata-x/wokong/issues/37"},"comments":{"href":"https://api.github.com/repos/smartdata-x/wokong/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/smartdata-x/wokong/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/smartdata-x/wokong/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smartdata-x/wokong/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/smartdata-x/wokong/statuses/7a5d31a96266c316ba69f4a8c7cb88b9aeecf5a6"}}}}
{"actor":{"display_login":"ysrotciv"}}