druidδÊÚȨ»á¼ûÎó²î¸´ÏÖ
druid δÊÚȨ»á¼ûÎó²îÔÊÐíδ¾ÊÚȨÓû§»á¼ûÃô¸ÐÊý¾ÝÔ´¡£Îó²î¸´ÏÖ°ì·¨°üÀ¨£ºÉèÖò»Çå¾²µÄ druid ʵÀý¡¢½¨ÉèÊý¾ÝÔ´£¬È»ºóÈƹýÊÚȨ¡£»º½â²½·¥°üÀ¨£ºÆôÓÃÊÚȨ»úÖÆ¡¢ÊµÑé acl£¬²¢°´ÆÚÉó²éÇå¾²ÉèÖá£
Druid δÊÚȨ»á¼ûÎó²î¸´ÏÖ
Îó²î¸ÅÊö
Druid ÊÇÒ»¸ö¿ªÔ´ÂþÑÜʽʱÐòÊý¾Ý¿â£¬ÔÊÐíÓû§´æ´¢¡¢ÅÌÎʺͿÉÊÓ»¯Ê±¼äÐòÁÐÊý¾Ý¡£Î´ÊÚȨ»á¼ûÎó²î±£´æÓÚ Druid µÄÇå¾²ÉèÖÃÖУ¬ÔÊÐíδ¾ÊÚȨµÄÓû§»á¼û¾ßÓÐÃô¸ÐÐÅÏ¢µÄÊý¾ÝÔ´£¬ÀýÈç Apache Hive »ò Amazon S3¡£
Îó²î¸´ÏÖ°ì·¨
- ÉèÖà Druid ʵÀý
- ʹÓò»Çå¾²µÄÉèÖÃ×°Öà Druid£¬½« security.enable.authorizer ÉèÖÃΪ false¡£
- ½¨ÉèÒ»¸öÊý¾ÝÔ´£¬ÀýÈç Apache Hive »ò Amazon S3¡£
- ÈƹýÊÚȨ
- δ¾ÊÚȨµÄÓû§¿ÉÒÔͨ¹ýÖ±½Ó·¢³ö HTTP ÇëÇóÀ´»á¼ûÊý¾ÝÔ´¡£ÀýÈ磬ÒÔÏÂÇëÇó»ñÈ¡ÃûΪ “example-datasource” µÄÊý¾ÝÔ´ÐÅÏ¢£º
curl http://localhost:8888/druid/v2/datasources/example-datasource
µÇ¼ºó¸´ÖÆ
- »ñÈ¡Ãô¸ÐÊý¾Ý
- ÈƹýÊÚȨºó£¬Î´¾ÊÚȨµÄÓû§¿ÉÒÔÖ´ÐÐí§ÒâÅÌÎÊ£¬²¢»á¼ûÊý¾ÝÔ´Öд洢µÄÃô¸ÐÊý¾Ý¡£ÀýÈ磬ÒÔÏÂÇëÇó·µ»ØÊý¾ÝÔ´ÖеÄËùÓÐÐУº
curl http://localhost:8888/druid/v2/sql -d 'SELECT * FROM example_table'
µÇ¼ºó¸´ÖÆ
Ó°Ïì
δÊÚȨ»á¼ûÎó²î¿ÉÄܵ¼ÖÂÑÏÖصÄÊý¾Ýй¶£¬ÔÊÐíδ¾ÊÚȨµÄÓû§»á¼ûºÍ¼ìË÷ÉúÑÄÔÚÊý¾ÝÔ´ÖеÄÃô¸ÐÐÅÏ¢¡£
»º½â²½·¥
»º½â´ËÎó²îµÄ°ì·¨°üÀ¨£º
- ÆôÓà Druid µÄÊÚȨ»úÖÆ£¬½« security.enable.authorizer ÉèÖÃΪ true¡£
- ʵÑé»á¼û¿ØÖÆÁбí (ACL) »òÆäËûÇå¾²²½·¥£¬ÒÔÏÞÖƶÔÊý¾ÝÔ´µÄ»á¼û¡£
- °´ÆÚÉó²éºÍ¸üÐÂÇå¾²ÉèÖã¬ÒÔÈ·±£ËüÃÇÊÇ×îеġ£
ÒÔÉϾÍÊÇdruidδÊÚȨ»á¼ûÎó²î¸´ÏÖµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡
ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£