PHP Fatal error: Class Mock_LoggerInterface contains 8 abstract >methods and must therefore be declared abstract or implement the remaining

Preconditions (*)

  1. Magento 2.3.1 upgraded from Magento 2.3.0
  2. Php 7.2.15
  3. OS : Ubuntu 18.04 Bionic
  4. Phpstorm 2019.1.1
  5. Evnironemnt : Magento development
  6. PHPUnit 6.5.0
  7. magento/magento2-functional-testing-framework”: “~2.3.13”

Steps to reproduce (*)

  • Follow the code to reproduce the error

Error

PHP Fatal error: Class Mock_LoggerInterface_a49cf619 contains 8 abstract >methods and must therefore be declared abstract or implement the remaining >methods (Psr\Log\LoggerInterface::emergency, Psr\Log>\LoggerInterface::alert, Psr\Log\LoggerInterface::critical, …) in /var/www/html/myproject/vendor/phpunit/phpunit-mock-objects>/src/Generator.php(264) : eval()’d code on line 1

My class code is given below

use Psr\Log\LoggerInterface;  class Foo {       private $  logger;      public function __construct(LoggerInterface $  logger)     {         $  this->logger = $  logger;     }     public function Bar ()     {       // some code       $  logger->debug ('debug message')      } } 

My Test Class Code is

use PHPUnit\Framework\TestCase;  class FooTest extends TestCase {      private $  logger;     public function setUp()     {         $  this->logger = $  this->getMockBuilder('\Psr\Log\LoggerInterface')             ->getMock();          $  this->logger->expects($  this->any())             ->method('debug')             ->willReturn('Message Logged');     }      $  this->myclassObject = $  this->getMockBuilder('MyVendor\MyModule\Model\Foo')     ->setMethods(['__construct'])             ->setConstructorArgs(['$  logger'])     ->disableOriginalConstructor()     ->getMock();      public function testBar()     {          $  this->assertEquals($  expected_result,$  this->myclassObject->Bar());     } } 

I’m expecting a successful unit test.

Let n be the number of vertices of G. Recall that G denotes the complement of G. Show that a) n ≤ χ(G)χ(G) and therefore, b) χ(G) + χ(G) ≥ 2√n.

This question was on my graph theory exam and I didn’t know how to approach solving it. The question in Tex is as follows:

Let n be the number of vertices of G. Recall that G denotes the complement of G. Show that a) n ≤ χ(G)χ(G) and therefore, b) χ(G) + χ(G) ≥ 2√n.

Any tips on how to approach this would be greatly appreciated!

Can’t get Hadoop Datanode but didn’t show any error .Therefore can’t know which is resource of error

I have a question. I’m currently taking a project to build data governance.

I have already connected master ip and slave1 ip to each other. Then, I have made ssh keys and copied.

I don’t think I have any errors about network.

Next, I tried to use hadoop as follow.

     hdfs namenode -format 

and I got a warning indicating

   WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 

Although I got a warning sign, i don’t think it is a problem. However, I can’t get datanode after running start-dfs.sh and start-yarn even without any issue

[problem]https://imgur.com/08V7fC8

[run start-dfs and yarn]https://imgur.com/A85KARw

Can someone tell me why I get this problem?

Hadoop configure I get is as below:

[yarn_site.xml] https://imgur.com/DEBEhSe

[mapred_site.xml] https://imgur.com/nxgdBdM

[core_site.xml] https://imgur.com/Y0l02rJ

[hdfs_site.xml] https://imgur.com/truB0zz