×ðÁú¿­Ê±¹ÙÍøµÇ¼

druidδÊÚȨ»á¼ûÎó²î¸´ÏÖ

druid δÊÚȨ»á¼ûÎó²îÔÊÐíδ¾­ÊÚȨÓû§»á¼ûÃô¸ÐÊý¾ÝÔ´¡£Îó²î¸´ÏÖ°ì·¨°üÀ¨£ºÉèÖò»Çå¾²µÄ druid ʵÀý¡¢½¨ÉèÊý¾ÝÔ´£¬È»ºóÈƹýÊÚȨ¡£»º½â²½·¥°üÀ¨£ºÆôÓÃÊÚȨ»úÖÆ¡¢ÊµÑé acl£¬²¢°´ÆÚÉó²éÇå¾²ÉèÖá£

Druid δÊÚȨ»á¼ûÎó²î¸´ÏÖ

Îó²î¸ÅÊö

Druid ÊÇÒ»¸ö¿ªÔ´ÂþÑÜʽʱÐòÊý¾Ý¿â£¬ÔÊÐíÓû§´æ´¢¡¢ÅÌÎʺͿÉÊÓ»¯Ê±¼äÐòÁÐÊý¾Ý¡£Î´ÊÚȨ»á¼ûÎó²î±£´æÓÚ Druid µÄÇå¾²ÉèÖÃÖУ¬ÔÊÐíδ¾­ÊÚȨµÄÓû§»á¼û¾ßÓÐÃô¸ÐÐÅÏ¢µÄÊý¾ÝÔ´£¬ÀýÈç Apache Hive »ò Amazon S3¡£

Îó²î¸´ÏÖ°ì·¨

  1. ÉèÖà Druid ʵÀý
  • ʹÓò»Çå¾²µÄÉèÖÃ×°Öà Druid£¬½« security.enable.authorizer ÉèÖÃΪ false¡£
  • ½¨ÉèÒ»¸öÊý¾ÝÔ´£¬ÀýÈç Apache Hive »ò Amazon S3¡£
  1. ÈƹýÊÚȨ
  • δ¾­ÊÚȨµÄÓû§¿ÉÒÔͨ¹ýÖ±½Ó·¢³ö HTTP ÇëÇóÀ´»á¼ûÊý¾ÝÔ´¡£ÀýÈ磬ÒÔÏÂÇëÇó»ñÈ¡ÃûΪ “example-datasource” µÄÊý¾ÝÔ´ÐÅÏ¢£º
curl http://localhost:8888/druid/v2/datasources/example-datasource

µÇ¼ºó¸´ÖÆ

  1. »ñÈ¡Ãô¸ÐÊý¾Ý
  • ÈƹýÊÚȨºó£¬Î´¾­ÊÚȨµÄÓû§¿ÉÒÔÖ´ÐÐí§ÒâÅÌÎÊ£¬²¢»á¼ûÊý¾ÝÔ´Öд洢µÄÃô¸ÐÊý¾Ý¡£ÀýÈ磬ÒÔÏÂÇëÇó·µ»ØÊý¾ÝÔ´ÖеÄËùÓÐÐУº
curl http://localhost:8888/druid/v2/sql -d 'SELECT * FROM example_table'

µÇ¼ºó¸´ÖÆ

Ó°Ïì

δÊÚȨ»á¼ûÎó²î¿ÉÄܵ¼ÖÂÑÏÖصÄÊý¾Ýй¶£¬ÔÊÐíδ¾­ÊÚȨµÄÓû§»á¼ûºÍ¼ìË÷ÉúÑÄÔÚÊý¾ÝÔ´ÖеÄÃô¸ÐÐÅÏ¢¡£

»º½â²½·¥

»º½â´ËÎó²îµÄ°ì·¨°üÀ¨£º

  • ÆôÓà Druid µÄÊÚȨ»úÖÆ£¬½« security.enable.authorizer ÉèÖÃΪ true¡£
  • ʵÑé»á¼û¿ØÖÆÁбí (ACL) »òÆäËûÇå¾²²½·¥£¬ÒÔÏÞÖƶÔÊý¾ÝÔ´µÄ»á¼û¡£
  • °´ÆÚÉó²éºÍ¸üÐÂÇå¾²ÉèÖã¬ÒÔÈ·±£ËüÃÇÊÇ×îеÄ¡£

ÒÔÉϾÍÊÇdruidδÊÚȨ»á¼ûÎó²î¸´ÏÖµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ