inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

176만명의 커뮤니티!! 함께 토론해봐요.

Xception 같은 경우 동결은 어떻게 해야될까요?

미해결

딥러닝 CNN 완벽 가이드 - TFKeras 버전

Xception 모델 같은 경우 어디 layer 까지 trainable를 False로 지정해야 될까요?

  • kaggle
  • 머신러닝 배워볼래요?
  • keras
  • tensorflow
  • 딥러닝
  • cnn
meshjo 댓글 1 좋아요 0 조회수 382

Derivec class -> Base class 형변환

해결됨

홍정모의 따라하며 배우는 C++

안녕하세요! Derived 객체에서 Base class로의 형변환 과정이 궁금해져서 질문을 남깁니다! 참고로 VS2022 를 사용하였습니다. #include <iostream> using namespace std; class Base { protected: int m_i; public: Base(int value) : m_i(value) { cout << sizeof(*this) << endl; } friend std::ostream& operator << (std::ostream& out, const Base& b) { out << &b << endl; out << "This is base output" << endl; return out; } }; class Derived : public Base { private: double m_d; public: Derived(int value) : Base(value) {} friend std::ostream& operator << (std::ostream& out, const Derived& d) { // derived는 base의 memory를 갖고 있기 때문에 가능함. out << static_cast<Base>(d); out << "This is derived output" << endl; return out; } }; int main() { Derived derived(7); cout << &derived << endl; cout << sizeof(derived) << endl; cout << derived << endl; return 0; } 먼저 class가 차지하는 size를 sizeof로 확인한 결과 Base는 4bytes, Derived는 16bytes(padding)으로 나왔습니다. 그다음 디버거를 통해 Derived의 주소를 통해 메모리에 들어있는 값을 확인한 후 Base의 연산자 오버로딩으로 넘어간 static_cast<Base> (d)의 주소를 들어가봤습니다. (위에 빨간 줄이 Base << 로 넘어간 후 static_cast<Base> (d)의메모리, 아래는 derived의 메모리) 결과 base << 는 reference로 받기 때문에 원본을 받아야하는데 주소가 다르게 나오고 값이 복사된 것을 확인할 수 있었습니다. 이 과정에서 어떤 부분이 복사하도록 관여한 것일까요? 한 가지 추측으로는 static_cast<>가 내부적으로 복사한 값을 base의 <<로 보내는 것이 아닌가 생각합니다!

  • C++
skf346 댓글 1 좋아요 0 조회수 289

Flutter 설치 중 Rosetta 설치 관련 문의

해결됨

Flutter 앱 개발 기초

안녕하세요. 선생님의 플러터 설치 가이드를 따라보며, 플러터를 새로 설치하였습니다. 맥북에어 m1 환경에서 설치하였는데, xcode설치 시, resetta라는 것을 설치하였습니다. 가이드에는 없는 내용이라 그러한데, rosetta가 무엇이고 이것을 설치해도 되는지요?

  • Flutter
k87s01k01 댓글 1 좋아요 2 조회수 479

next-redux-wrapper

미해결

[리뉴얼] React로 NodeBird SNS 만들기

제로초님 제가 next-redux-wrapper를 사용했는데 사용이후 새로고침을 할때마다 밑에처럼 4번씩 이나 찍히는데 이게 원래 4번이 맞는걸까요?

  • Next.js
  • react
  • nodejs
  • express
  • redux
제이제이 댓글 1 좋아요 0 조회수 264

카프카와 주키퍼랑 통신할때는 브로커 서버의 어느 컴포넌트를 사용해 통신하나요?

미해결

카프카 완벽 가이드 - 코어편

카프카와 주키퍼랑 통신할때는 브로커 서버의 어느 컴포넌트를 사용해 통신하나요? 컨수머는 컨수머 그룹 코디네이터와 통신하고,, 파티션은 파티션 리더와 통신하는데, >> 질문 : 브로커 서버( 카프카 서버) 와 주키퍼는 어느 컴포넌트를 통해서 통신하나요? 머신러닝때부터 감사합니다 하하... 많이 배우고 있습니다.

  • Kafka
  • 데이터 엔지니어링
흰색남자 댓글 1 좋아요 0 조회수 380

AppConfig의 전체 동작방식 구성 의미

미해결

스프링 핵심 원리 - 기본편

[질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예) 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예) 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예) [질문 내용] AppConfig가 애플리케이션의 동작에 필요한 구현객체를 생성하고, 연결하는 별도의 설정 클래스라는것은 이해했는데, 강의 내용 보면 AppConfig가 애플리케이션의 전체 동작방식을 구성한다고 하였는데 여기서 말씀하시는 '애플리케이션의 전체 동작방식 구성' 이라는 의미가 무엇인지 모르겠어서요. 애플리케이션의 전체 동작방식 구성 = 애플리케이션의 동작에 필요한 구현객체생성, 연결 이렇게 이해하면될까요?

  • spring
  • oop
오리쉐리 댓글 1 좋아요 1 조회수 286

21강 질문

미해결

[개념은 호옹~, 실습 빡] 스프링 부트, 입문!

나머지는 다 되는데 Create 성공 test만 에러가 나네요. 코드도 다 똑같이 했는데, 이유를 잘 모르겠습니다. SQL Error: 23505, SQLState: 23505 라는 에러코드가 있어 확인해봤더니 이미 같은값이 존재할때 이런 메세지가 뜬다는데.. 그래서 4L을 다른 숫자로도 바꿔보고 타이틀이나 컨텐트를 다른 문자로도 바꿔봤는데 결과가 똑같네요. 도움 부탁드리겠습니다. > Task :compileJava UP-TO-DATE > Task :processResources UP-TO-DATE > Task :classes UP-TO-DATE > Task :compileTestJava > Task :processTestResources NO-SOURCE > Task :testClasses > Task :test 11:12:22.291 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] 11:12:22.302 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support .DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)] 11:12:22.336 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.example.firstproject.Service.ArticleServiceTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] 11:12:22.349 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.example.firstproject.Service.ArticleServiceTest], using SpringBootContextLoader 11:12:22.353 [Test worker] DEBUG org.springframework.test.context.support .AbstractContextLoader - Did not detect default resource location for test class [com.example.firstproject.Service.ArticleServiceTest]: class path resource [com/example/firstproject/Service/ArticleServiceTest-context.xml] does not exist 11:12:22.354 [Test worker] DEBUG org.springframework.test.context.support .AbstractContextLoader - Did not detect default resource location for test class [com.example.firstproject.Service.ArticleServiceTest]: class path resource [com/example/firstproject/Service/ArticleServiceTestContext.groovy] does not exist 11:12:22.354 [Test worker] INFO org.springframework.test.context.support .AbstractContextLoader - Could not detect default resource locations for test class [com.example.firstproject.Service.ArticleServiceTest]: no resource found for suffixes {-context.xml, Context.groovy}. 11:12:22.355 [Test worker] INFO org.springframework.test.context.support .AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.example.firstproject.Service.ArticleServiceTest]: ArticleServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 11:12:22.409 [Test worker] DEBUG org.springframework.test.context.support .ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.example.firstproject.Service.ArticleServiceTest] 11:12:22.470 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [C:\Users\jine\Desktop\firstproject\build\classes\java\main\com\example\firstproject\FirstprojectApplication.class] 11:12:22.471 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.example.firstproject.FirstprojectApplication for test class com.example.firstproject.Service.ArticleServiceTest 11:12:22.573 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.example.firstproject.Service.ArticleServiceTest]: using defaults. 11:12:22.573 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support .DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support .DependencyInjectionTestExecutionListener, org.springframework.test.context.support .DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] 11:12:22.593 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@6d025197, org.springframework.test.context.support .DirtiesContextBeforeModesTestExecutionListener@27d4a09, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@7e4204e2, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@b7c4869, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@740d2e78, org.springframework.test.context.support .DirtiesContextTestExecutionListener@1c481ff2, org.springframework.test.context.transaction.TransactionalTestExecutionListener@72437d8d, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@1b955cac, org.springframework.test.context.event.EventPublishingTestExecutionListener@676cf48, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@5a1de7fb, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@335b5620, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@29a0cdb, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@32a68f4f, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@73194df, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@6eb2384f] 11:12:22.596 [Test worker] DEBUG org.springframework.test.context.support .AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@30af5b6b testClass = ArticleServiceTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@19835e64 testClass = ArticleServiceTest, locations = '{}', classes = '{class com.example.firstproject.FirstprojectApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@35841320, org.springframework.boot.test.autoconfigure.properties .PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@6b695b06, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@6f01b95f, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@7a5ceedd, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@26abb146, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@96def03], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null]. . ____ _ /\\ / ___'_ __ ( _)_ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.7.4) 2022-10-18 11:12:22.915 INFO 3660 --- [ Test worker] c.e.f.Service.ArticleServiceTest : Starting ArticleServiceTest using Java 1.8.0_345 on Home with PID 3660 (started by jine in C:\Users\jine\Desktop\firstproject) 2022-10-18 11:12:22.916 INFO 3660 --- [ Test worker] c.e.f.Service.ArticleServiceTest : No active profile set, falling back to 1 default profile: "default" 2022-10-18 11:12:23.475 INFO 3660 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2022-10-18 11:12:23.527 INFO 3660 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 43 ms. Found 1 JPA repository interfaces. 2022-10-18 11:12:24.037 INFO 3660 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2022-10-18 11:12:24.283 INFO 3660 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2022-10-18 11:12:24.349 INFO 3660 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2022-10-18 11:12:24.413 INFO 3660 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.11.Final 2022-10-18 11:12:24.611 INFO 3660 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations { 5.1.2.Final } 2022-10-18 11:12:24.774 INFO 3660 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 2022-10-18 11:12:25.369 DEBUG 3660 --- [ Test worker] org.hibernate.SQL : drop table if exists article CASCADE 2022-10-18 11:12:25.376 DEBUG 3660 --- [ Test worker] org.hibernate.SQL : create table article ( id bigint generated by default as identity, content varchar(255), title varchar(255), primary key (id) ) 2022-10-18 11:12:25.385 INFO 3660 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 2022-10-18 11:12:25.395 INFO 3660 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2022-10-18 11:12:25.896 WARN 3660 --- [ Test worker] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 2022-10-18 11:12:26.318 INFO 3660 --- [ Test worker] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:testdb' 2022-10-18 11:12:26.699 INFO 3660 --- [ Test worker] c.e.f.Service.ArticleServiceTest : Started ArticleServiceTest in 4.067 seconds (JVM running for 5.345) 2022-10-18 11:12:26.843 DEBUG 3660 --- [ Test worker] org.hibernate.SQL : insert into article (id, content, title) values (default, ?, ?) 2022-10-18 11:12:26.849 TRACE 3660 --- [ Test worker] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [4444] 2022-10-18 11:12:26.850 TRACE 3660 --- [ Test worker] o.h.type.descriptor.sql.BasicBinder : binding parameter [2] as [VARCHAR] - [라라라라] 2022-10-18 11:12:26.853 WARN 3660 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 23505, SQLState: 23505 2022-10-18 11:12:26.854 ERROR 3660 --- [ Test worker] o.h.engine.jdbc.spi.SqlExceptionHelper : Unique index or primary key violation: "PRIMARY KEY ON PUBLIC.ARTICLE(ID) ( /* key:1 */ CAST(1 AS BIGINT), '1111', U&'\\ac00\\ac00\\ac00\\ac00')"; SQL statement: insert into article (id, content, title) values (default, ?, ?) [23505-214] could not execute statement; SQL [n/a]; constraint ["PRIMARY KEY ON PUBLIC.ARTICLE(ID) ( /* key:1 */ CAST(1 AS BIGINT), '1111', U&'\\ac00\\ac00\\ac00\\ac00')"; SQL statement: insert into article (id, content, title) values (default, ?, ?) [23505-214]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint ["PRIMARY KEY ON PUBLIC.ARTICLE(ID) ( /* key:1 */ CAST(1 AS BIGINT), '1111', U&'\\ac00\\ac00\\ac00\\ac00')"; SQL statement: insert into article (id, content, title) values (default, ?, ?) [23505-214]]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException( HibernateJpaDialect.java:276 ) at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible( HibernateJpaDialect.java:233 ) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible( AbstractEntityManagerFactoryBean.java:551 ) at org.springframework.dao.support .ChainedPersistenceExceptionTranslator.translateExceptionIfPossible( ChainedPersistenceExceptionTranslator.java:61 ) at org.springframework.dao.support .DataAccessUtils.translateIfNecessary( DataAccessUtils.java:242 ) at org.springframework.dao.support .PersistenceExceptionTranslationInterceptor.invoke( PersistenceExceptionTranslationInterceptor.java:152 ) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:186 ) at org.springframework.data.jpa.repository.support .CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke( CrudMethodMetadataPostProcessor.java:174 ) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:186 ) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke( ExposeInvocationInterceptor.java:97 ) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:186 ) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke( JdkDynamicAopProxy.java:215 ) at com.sun.proxy.$Proxy105.save(Unknown Source) at com.example.firstproject.Service.ArticleService.create( ArticleService.java:37 ) at com.example.firstproject.Service.ArticleService$$FastClassBySpringCGLIB$$ee1232c.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke( MethodProxy.java:218 ) at org.springframework.aop.framework.CglibAopProxy.invokeMethod( CglibAopProxy.java:386 ) at org.springframework.aop.framework.CglibAopProxy.access$000( CglibAopProxy.java:85 ) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept( CglibAopProxy.java:704 ) at com.example.firstproject.Service.ArticleService$$EnhancerBySpringCGLIB$$1500e2b6.create(<generated>) at com.example.firstproject.Service.ArticleServiceTest.create_성공____title과_content만_있는_dto_입력( ArticleServiceTest.java:70 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 ) at java.lang.reflect.Method.invoke( Method.java:498 ) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod( ReflectionUtils.java:725 ) at org.junit.jupiter.engine.execution.MethodInvocation.proceed( MethodInvocation.java:60 ) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed( InvocationInterceptorChain.java:131 ) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept( TimeoutExtension.java:149 ) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod( TimeoutExtension.java:140 ) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod( TimeoutExtension.java:84 ) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0( ExecutableInvoker.java:115 ) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0( ExecutableInvoker.java:105 ) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed( InvocationInterceptorChain.java:106 ) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed( InvocationInterceptorChain.java:64 ) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke( InvocationInterceptorChain.java:45 ) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke( InvocationInterceptorChain.java:37 ) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke( ExecutableInvoker.java:104 ) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke( ExecutableInvoker.java:98 ) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7( TestMethodTestDescriptor.java:214 ) at org.junit.platform.engine.support .hierarchical.ThrowableCollector.execute( ThrowableCollector.java:73 ) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod( TestMethodTestDescriptor.java:210 ) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute( TestMethodTestDescriptor.java:135 ) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute( TestMethodTestDescriptor.java:66 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$6( NodeTestTask.java:151 ) at org.junit.platform.engine.support .hierarchical.ThrowableCollector.execute( ThrowableCollector.java:73 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$8( NodeTestTask.java:141 ) at org.junit.platform.engine.support .hierarchical.Node.around( Node.java:137 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$9( NodeTestTask.java:139 ) at org.junit.platform.engine.support .hierarchical.ThrowableCollector.execute( ThrowableCollector.java:73 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.executeRecursively( NodeTestTask.java:138 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.execute( NodeTestTask.java:95 ) at java.util.ArrayList.forEach( ArrayList.java:1259 ) at org.junit.platform.engine.support .hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll( SameThreadHierarchicalTestExecutorService.java:41 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$6( NodeTestTask.java:155 ) at org.junit.platform.engine.support .hierarchical.ThrowableCollector.execute( ThrowableCollector.java:73 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$8( NodeTestTask.java:141 ) at org.junit.platform.engine.support .hierarchical.Node.around( Node.java:137 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$9( NodeTestTask.java:139 ) at org.junit.platform.engine.support .hierarchical.ThrowableCollector.execute( ThrowableCollector.java:73 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.executeRecursively( NodeTestTask.java:138 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.execute( NodeTestTask.java:95 ) at java.util.ArrayList.forEach( ArrayList.java:1259 ) at org.junit.platform.engine.support .hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll( SameThreadHierarchicalTestExecutorService.java:41 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$6( NodeTestTask.java:155 ) at org.junit.platform.engine.support .hierarchical.ThrowableCollector.execute( ThrowableCollector.java:73 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$8( NodeTestTask.java:141 ) at org.junit.platform.engine.support .hierarchical.Node.around( Node.java:137 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.lambda$executeRecursively$9( NodeTestTask.java:139 ) at org.junit.platform.engine.support .hierarchical.ThrowableCollector.execute( ThrowableCollector.java:73 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.executeRecursively( NodeTestTask.java:138 ) at org.junit.platform.engine.support .hierarchical.NodeTestTask.execute( NodeTestTask.java:95 ) at org.junit.platform.engine.support .hierarchical.SameThreadHierarchicalTestExecutorService.submit( SameThreadHierarchicalTestExecutorService.java:35 ) at org.junit.platform.engine.support .hierarchical.HierarchicalTestExecutor.execute( HierarchicalTestExecutor.java:57 ) at org.junit.platform.engine.support .hierarchical.HierarchicalTestEngine.execute( HierarchicalTestEngine.java:54 ) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute( EngineExecutionOrchestrator.java:107 ) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute( EngineExecutionOrchestrator.java:88 ) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0( EngineExecutionOrchestrator.java:54 ) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams( EngineExecutionOrchestrator.java:67 ) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute( EngineExecutionOrchestrator.java:52 ) at org.junit.platform.launcher.core.DefaultLauncher.execute( DefaultLauncher.java:114 ) at org.junit.platform.launcher.core.DefaultLauncher.execute( DefaultLauncher.java:86 ) at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute( DefaultLauncherSession.java:86 ) at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute( SessionPerRequestLauncher.java:53 ) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses( JUnitPlatformTestClassProcessor.java:99 ) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000( JUnitPlatformTestClassProcessor.java:79 ) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop( JUnitPlatformTestClassProcessor.java:75 ) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop( SuiteTestClassProcessor.java:61 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 ) at java.lang.reflect.Method.invoke( Method.java:498 ) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch( ReflectionDispatch.java:36 ) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch( ReflectionDispatch.java:24 ) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch( ContextClassLoaderDispatch.java:33 ) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke( ProxyDispatchAdapter.java:94 ) at com.sun.proxy.$Proxy2.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run( TestWorker.java:193 ) at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName( TestWorker.java:129 ) at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute( TestWorker.java:100 ) at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute( TestWorker.java:60 ) at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute( ActionExecutionWorker.java:56 ) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call ( SystemApplicationClassLoaderWorker.java:133 ) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call ( SystemApplicationClassLoaderWorker.java:71 ) at worker.org.gradle.process.internal.worker.GradleWorkerMain.run ( GradleWorkerMain.java:69 ) at worker.org .gradle.process.internal.worker.GradleWorkerMain.main( GradleWorkerMain.java:74 ) Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert( SQLExceptionTypeDelegate.java:59 ) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert( StandardSQLExceptionConverter.java:37 ) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert( SqlExceptionHelper.java:113 ) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert( SqlExceptionHelper.java:99 ) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate( ResultSetReturnImpl.java:200 ) at org.hibernate.dialect.identity.GetGeneratedKeysDelegate.executeAndExtract( GetGeneratedKeysDelegate.java:58 ) at org.hibernate.id .insert.AbstractReturningDelegate.performInsert( AbstractReturningDelegate.java:43 ) at org.hibernate.persister.entity.AbstractEntityPersister.insert( AbstractEntityPersister.java:3279 ) at org.hibernate.persister.entity.AbstractEntityPersister.insert( AbstractEntityPersister.java:3885 ) at org.hibernate.action.internal.EntityIdentityInsertAction.execute( EntityIdentityInsertAction.java:84 ) at org.hibernate.engine.spi.ActionQueue.execute( ActionQueue.java:645 ) at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction( ActionQueue.java:282 ) at org.hibernate.engine.spi.ActionQueue.addInsertAction( ActionQueue.java:263 ) at org.hibernate.engine.spi.ActionQueue.addAction( ActionQueue.java:317 ) at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction( AbstractSaveEventListener.java:330 ) at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate( AbstractSaveEventListener.java:287 ) at org.hibernate.event.internal.AbstractSaveEventListener.performSave( AbstractSaveEventListener.java:193 ) at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId( AbstractSaveEventListener.java:123 ) at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient( DefaultPersistEventListener.java:185 ) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist( DefaultPersistEventListener.java:128 ) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist( DefaultPersistEventListener.java:55 ) at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener( EventListenerGroupImpl.java:107 ) at org.hibernate.internal.SessionImpl.firePersist( SessionImpl.java:756 ) at org.hibernate.internal.SessionImpl.persist( SessionImpl.java:742 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 ) at java.lang.reflect.Method.invoke( Method.java:498 ) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke( SharedEntityManagerCreator.java:311 ) at com.sun.proxy.$Proxy102.persist(Unknown Source) at org.springframework.data.jpa.repository.support.SimpleJpaRepository.save ( SimpleJpaRepository.java:666 ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:62 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43 ) at java.lang.reflect.Method.invoke( Method.java:498 ) at org.springframework.data.repository.core.support .RepositoryMethodInvoker$RepositoryFragmentMethodInvoker.lambda$new$0( RepositoryMethodInvoker.java:289 ) at org.springframework.data.repository.core.support .RepositoryMethodInvoker.doInvoke( RepositoryMethodInvoker.java:137 ) at org.springframework.data.repository.core.support .RepositoryMethodInvoker.invoke( RepositoryMethodInvoker.java:121 ) at org.springframework.data.repository.core.support .RepositoryComposition$RepositoryFragments.invoke( RepositoryComposition.java:530 ) at org.springframework.data.repository.core.support .RepositoryComposition.invoke( RepositoryComposition.java:286 ) at org.springframework.data.repository.core.support .RepositoryFactorySupport$ImplementationMethodExecutionInterceptor.invoke( RepositoryFactorySupport.java:640 ) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:186 ) at org.springframework.data.repository.core.support .QueryExecutorMethodInterceptor.doInvoke( QueryExecutorMethodInterceptor.java:164 ) at org.springframework.data.repository.core.support .QueryExecutorMethodInterceptor.invoke( QueryExecutorMethodInterceptor.java:139 ) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:186 ) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation( TransactionInterceptor.java:123 ) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction( TransactionAspectSupport.java:388 ) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke( TransactionInterceptor.java:119 ) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:186 ) at org.springframework.dao.support .PersistenceExceptionTranslationInterceptor.invoke( PersistenceExceptionTranslationInterceptor.java:137 ) ... 100 more Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: Unique index or primary key violation: "PRIMARY KEY ON PUBLIC.ARTICLE(ID) ( /* key:1 */ CAST(1 AS BIGINT), '1111', U&'\\ac00\\ac00\\ac00\\ac00')"; SQL statement: insert into article (id, content, title) values (default, ?, ?) [23505-214] at org.h2.message.DbException.getJdbcSQLException( DbException.java:508 ) at org.h2.message.DbException.getJdbcSQLException( DbException.java:477 ) at org.h2.message.DbException.get( DbException.java:223 ) at org.h2.message.DbException.get( DbException.java:199 ) at org.h2.mvstore.db.MVPrimaryIndex.add( MVPrimaryIndex.java:120 ) at org.h2.mvstore.db.MVTable.addRow( MVTable.java:519 ) at org.h2.command.dml.Insert.insertRows( Insert.java:174 ) at org.h2.command.dml.Insert.update( Insert.java:135 ) at org.h2.command.CommandContainer.executeUpdateWithGeneratedKeys( CommandContainer.java:242 ) at org.h2.command.CommandContainer.update( CommandContainer.java:163 ) at org.h2.command.Command.executeUpdate( Command.java:252 ) at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal( JdbcPreparedStatement.java:209 ) at org.h2.jdbc.JdbcPreparedStatement.executeUpdate( JdbcPreparedStatement.java:169 ) at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate( ProxyPreparedStatement.java:61 ) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate( HikariProxyPreparedStatement.java ) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate( ResultSetReturnImpl.java:197 ) ... 145 more ArticleServiceTest > create_성공____title과_content만_있는_dto_입력() FAILED org.springframework.dao.DataIntegrityViolationException at ArticleServiceTest.java:70 Caused by: org.hibernate.exception.ConstraintViolationException at ArticleServiceTest.java:70 Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException at ArticleServiceTest.java:70 2022-10-18 11:12:26.926 INFO 3660 --- [ionShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2022-10-18 11:12:26.926 INFO 3660 --- [ionShutdownHook] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down' 2022-10-18 11:12:26.927 DEBUG 3660 --- [ionShutdownHook] org.hibernate.SQL : drop table if exists article CASCADE 2022-10-18 11:12:26.927 WARN 3660 --- [ionShutdownHook] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 90121, SQLState: 90121 2022-10-18 11:12:26.927 ERROR 3660 --- [ionShutdownHook] o.h.engine.jdbc.spi.SqlExceptionHelper : Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-214] 2022-10-18 11:12:26.928 WARN 3660 --- [ionShutdownHook] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 90121, SQLState: 90121 2022-10-18 11:12:26.928 ERROR 3660 --- [ionShutdownHook] o.h.engine.jdbc.spi.SqlExceptionHelper : Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-214] 2022-10-18 11:12:26.928 WARN 3660 --- [ionShutdownHook] o.s.b.f.support .DisposableBeanAdapter : Invocation of destroy method failed on bean with name 'entityManagerFactory': org.hibernate.exception.JDBCConnectionException: Unable to release JDBC Connection used for DDL execution 2022-10-18 11:12:26.928 INFO 3660 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2022-10-18 11:12:26.929 INFO 3660 --- [ionShutdownHook] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 1 test completed, 1 failed > Task :test FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':test'. > There were failing tests. See the report at: file:///C:/Users/jine/Desktop/firstproject/build/reports/tests/test/index.html * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 6s 4 actionable tasks: 2 executed, 2 up-to-date

  • spring-boot
책상맨 댓글 1 좋아요 0 조회수 615

memberRepository에 대해서

해결됨

스프링 핵심 원리 - 기본편

[질문 내용] 여기에 질문 내용을 남겨주세요. 강의 7분 11초 쯤 나오는 화면에서 memberRepository를 new로 생성했는데 이렇게 하면 bin에 등록 안할시 멤버를 등록할 때 사용한 repository랑 둘이 다른 저장소인거 아닌가요?

  • oop
  • spring
박준형 댓글 1 좋아요 0 조회수 303

탐색 파일럿 실행 주제영역 5 관련 에러

미해결

15일간의 빅데이터 파일럿 프로젝트

안녕하세요. 주제영역 1~4는 다 완성해서 테스트까지 문제가 없었는데, Workflow 5 실행을 하면 첫번째 사진처럼 오류가 납니다. (Main Class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2]) 그래서 재실행하려고 하면 두번째 사진같이 hive-8943, hive-f7c0 이 두개가 나오는데, 선택 후 재실행해도 같은 에러만 계속 뜹니다. 로그 2022-10-18 10:37:56,725 INFO org.apache.oozie.service.JPAService: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[] No results found 2022-10-18 10:37:57,018 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@:start:] Start action [0000000-221018103111060-oozie-oozi-W@:start:] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10] 2022-10-18 10:37:57,038 INFO org.apache.oozie.action.control.StartActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@:start:] Starting action 2022-10-18 10:37:57,071 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@:start:] [***0000000-221018103111060-oozie-oozi-W@:start:***]Action status=DONE 2022-10-18 10:37:57,073 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@:start:] [***0000000-221018103111060-oozie-oozi-W@:start:***]Action updated in DB! 2022-10-18 10:37:57,644 INFO org.apache.oozie.action.control.StartActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@:start:] Action ended with external status [OK] 2022-10-18 10:37:57,869 INFO org.apache.oozie.service.JPAService: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@:start:] No results found 2022-10-18 10:37:57,924 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@:start:] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W@:start: 2022-10-18 10:37:57,931 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W 2022-10-18 10:37:58,198 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] Start action [0000000-221018103111060-oozie-oozi-W@hive-8943] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10] 2022-10-18 10:37:58,251 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] Starting action. Getting Action File System 2022-10-18 10:37:58,335 INFO org.apache.oozie.service.HadoopAccessorService: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] Processing configuration file [/var/run/cloudera-scm-agent/process/158-oozie-OOZIE_SERVER/action-conf/default.xml] for action [default] and hostPort [*] 2022-10-18 10:37:58,740 INFO org.apache.oozie.service.HadoopAccessorService: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] Processing configuration file [/var/run/cloudera-scm-agent/process/158-oozie-OOZIE_SERVER/action-conf/hive2.xml] for action [hive2] and hostPort [*] 2022-10-18 10:38:08,426 WARN org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] Invalid configuration value [null] defined for launcher max attempts count, using default [2]. 2022-10-18 10:38:08,450 INFO org.apache.oozie.action.hadoop.YarnACLHandler: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] Not setting ACLs because mapreduce.cluster.acls.enabled is set to false 2022-10-18 10:38:11,291 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] checking action, hadoop job ID [application_1666056618933_0001] status [RUNNING] 2022-10-18 10:38:11,308 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] [***0000000-221018103111060-oozie-oozi-W@hive-8943***]Action status=RUNNING 2022-10-18 10:38:11,308 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] [***0000000-221018103111060-oozie-oozi-W@hive-8943***]Action updated in DB! 2022-10-18 10:38:11,319 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W@hive-8943 2022-10-18 10:38:36,625 INFO org.apache.oozie.servlet.CallbackServlet: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] callback for action [0000000-221018103111060-oozie-oozi-W@hive-8943] 2022-10-18 10:38:37,942 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] action completed, external ID [application_1666056618933_0001] 2022-10-18 10:38:38,033 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] Action ended with external status [SUCCEEDED] 2022-10-18 10:38:38,152 INFO org.apache.oozie.service.JPAService: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] No results found 2022-10-18 10:38:38,761 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] Start action [0000000-221018103111060-oozie-oozi-W@hive-f7c0] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10] 2022-10-18 10:38:38,776 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] Starting action. Getting Action File System 2022-10-18 10:38:41,091 WARN org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] Invalid configuration value [null] defined for launcher max attempts count, using default [2]. 2022-10-18 10:38:41,094 INFO org.apache.oozie.action.hadoop.YarnACLHandler: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] Not setting ACLs because mapreduce.cluster.acls.enabled is set to false 2022-10-18 10:38:42,746 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] checking action, hadoop job ID [application_1666056618933_0002] status [RUNNING] 2022-10-18 10:38:42,757 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] [***0000000-221018103111060-oozie-oozi-W@hive-f7c0***]Action status=RUNNING 2022-10-18 10:38:42,765 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] [***0000000-221018103111060-oozie-oozi-W@hive-f7c0***]Action updated in DB! 2022-10-18 10:38:42,785 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W@hive-f7c0 2022-10-18 10:38:42,791 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-8943] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W@hive-8943 2022-10-18 10:40:18,663 INFO org.apache.oozie.servlet.CallbackServlet: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] callback for action [0000000-221018103111060-oozie-oozi-W@hive-f7c0] 2022-10-18 10:40:18,971 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] External Child IDs : [job_1666056618933_0003] 2022-10-18 10:40:18,987 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] action completed, external ID [application_1666056618933_0002] 2022-10-18 10:40:19,226 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] Action ended with external status [SUCCEEDED] 2022-10-18 10:40:19,417 INFO org.apache.oozie.service.JPAService: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] No results found 2022-10-18 10:40:19,883 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] Start action [0000000-221018103111060-oozie-oozi-W@hive-1ff1] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10] 2022-10-18 10:40:19,905 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] Starting action. Getting Action File System 2022-10-18 10:40:22,772 WARN org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] Invalid configuration value [null] defined for launcher max attempts count, using default [2]. 2022-10-18 10:40:22,776 INFO org.apache.oozie.action.hadoop.YarnACLHandler: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] Not setting ACLs because mapreduce.cluster.acls.enabled is set to false 2022-10-18 10:40:24,036 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] checking action, hadoop job ID [application_1666056618933_0004] status [RUNNING] 2022-10-18 10:40:24,041 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] [***0000000-221018103111060-oozie-oozi-W@hive-1ff1***]Action status=RUNNING 2022-10-18 10:40:24,041 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] [***0000000-221018103111060-oozie-oozi-W@hive-1ff1***]Action updated in DB! 2022-10-18 10:40:24,066 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W@hive-1ff1 2022-10-18 10:40:24,069 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-f7c0] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W@hive-f7c0 2022-10-18 10:41:29,401 INFO org.apache.oozie.servlet.CallbackServlet: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] callback for action [0000000-221018103111060-oozie-oozi-W@hive-1ff1] 2022-10-18 10:41:29,597 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] External Child IDs : [job_1666056618933_0005] 2022-10-18 10:41:29,603 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] action completed, external ID [application_1666056618933_0004] 2022-10-18 10:41:29,603 WARN org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] Launcher ERROR, reason: Main Class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2] 2022-10-18 10:41:29,665 INFO org.apache.oozie.action.hadoop.Hive2ActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] Action ended with external status [FAILED/KILLED] 2022-10-18 10:41:29,674 INFO org.apache.oozie.command.wf.ActionEndXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] ERROR is considered as FAILED for SLA 2022-10-18 10:41:29,976 INFO org.apache.oozie.service.JPAService: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] No results found 2022-10-18 10:41:30,035 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@Kill] Start action [0000000-221018103111060-oozie-oozi-W@Kill] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10] 2022-10-18 10:41:30,058 INFO org.apache.oozie.action.control.KillActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@Kill] Starting action 2022-10-18 10:41:30,065 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@Kill] [***0000000-221018103111060-oozie-oozi-W@Kill***]Action status=DONE 2022-10-18 10:41:30,066 INFO org.apache.oozie.command.wf.ActionStartXCommand: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@Kill] [***0000000-221018103111060-oozie-oozi-W@Kill***]Action updated in DB! 2022-10-18 10:41:30,093 INFO org.apache.oozie.action.control.KillActionExecutor: SERVER[server02.hadoop.com] USER[admin] GROUP[-] TOKEN[] APP[Subject 5 - Workflow] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@Kill] Action ended with external status [OK] 2022-10-18 10:41:30,250 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@Kill] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W@Kill 2022-10-18 10:41:30,252 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W 2022-10-18 10:41:30,253 INFO org.apache.oozie.command.wf.WorkflowNotificationXCommand: SERVER[server02.hadoop.com] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000000-221018103111060-oozie-oozi-W] ACTION[0000000-221018103111060-oozie-oozi-W@hive-1ff1] No Notification URL is defined. Therefore nothing to notify for job 0000000-221018103111060-oozie-oozi-W@hive-1ff1 +CM를 보면 HDFS만 경고창 하나가 떠있는데 그게 혹시 문제가 되는건가 싶어서 같이 첨부합니다. ++ 다른 질문글에 있는 권한은 이미 해보았습니다

  • 데이터 엔지니어링
  • ZooKeeper
  • Flume
  • Kafka
  • redis
  • Impala
  • bigdata
  • Hadoop
cksl1220 댓글 1 좋아요 0 조회수 214

엑셀 파일 다룰때요!!

미해결

[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지

multer 로 파일 업로드 > 파일 제어해서 작업 > 업로드한 파일 삭제 요 프로세스로 가야 하나요?? 아니면 임시 파일을 읽어서 하거나 하는 방법은 따로 없나요?? 일단 위 프로세스로 짜고 있는데 더 간단한 방법이 있지 않나 싶어서욥

  • nodejs
  • mysql
  • mongodb
  • Sequelize
Chang yong Park 댓글 2 좋아요 0 조회수 293

20강 질문

미해결

[개념은 호옹~, 실습 빡] 스프링 부트, 입문!

위 트랜젝션 코드를 쓰면서 강의와는 다른 부분이 생깁니다. 오른쪽에 붉은색 표시된 부분이 생기는데 왜 그러는걸까요? 데이터는 강의대로 잘 넣어지고 그러는데, 결제실패! 라는 로그가 나오지도 않네요..

  • spring-boot
책상맨 댓글 1 좋아요 0 조회수 278

선생님 시험질문입니다.

미해결

[2026년 출제기준] 웹디자인개발기능사 실기시험 완벽 가이드

시험에 font-size 15로 해라는 명령이 존재하나요? 글자 시험문 읽어보니까 글자 크기는 디자인과 형식에 맞게 하라고만 되어있고 포인트 얼마로 하라는 명시는 안되어 있는거 같은데요

  • 웹 디자인
  • jquery
  • HTML/CSS
김하윤 댓글 1 좋아요 1 조회수 191

도커 이미지 빌드시 에러발생

미해결

따라하며 배우는 도커와 CI환경 [2023.11 업데이트]

FROM node:16-alpine as builder WORKDIR /practice_react COPY package.json . RUN npm install COPY . . RUN npm run build # --from=builder는 as builder로 빌드한 내용을 가져온다는 뜻이고 build되어있는 경로를 첫번쨰로 그다음 그 경로에 있는 파일을 카피할곳을 두번쨰로 둔다 FROM nginx COPY --from=builder /practice_react/build /usr/share/nginx/html 위의 코드는 제 Dockerfile.dev 파일입니다. 현재 RUN npm run build시 The command '/bin/sh -c npm run build' returned a non-zero code: 1 와 같은 에러를 발생 시키는 상태이며 당연 빌드가 제대로 되지 않았으니 .travis.yml에서 테스트를 위해 npm run test를 했을때도 docker-entrypoint.sh : 38: exec: npm: not found 해당에러를 뱉어냅니다.

  • docker
  • aws
  • github
  • travis-ci
  • 데이터 엔지니어링
  • cicd
양진영 댓글 0 좋아요 0 조회수 505

안녕하세요

미해결

스프링 핵심 원리 - 기본편

[질문 내용] 안녕하세요, TestBean 테스트 실행 시 javax.annotation.meta.When not found 경고문이 떠서 검색해보니 build.gradle 에 implementation ' com.google .code.findbugs:jsr305:3.0.2 를 추가하면 이 경고문을 없앨수 있다고 합니다. 시간내주셔서 질문글 들어오셨을 강사님께 죄송하지만 질문에 이것에 대한 관련 질문글이 없길래 혹시나 궁금하신분 있으실거 같아서 질문란에 올립니다. 감사합니다.

  • oop
  • spring
신건우 댓글 1 좋아요 2 조회수 369

전, 교재 받지 않았는데요?

미해결

[2026년 출제기준] 웹디자인개발기능사 실기시험 완벽 가이드

강의 중에 "여러분이 받은 교재에"란 이야기가 자주 나오는데 전, 교재 받지 않았는데 왜?, 제가 수강 신청할 땐 교재 주지 않았습니까?

  • 웹 디자인
  • jquery
  • HTML/CSS
HL5PFM 댓글 1 좋아요 1 조회수 278

코드리뷰 부탁드립니다 항상 감사합니다!

미해결

자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)

오랜만에 제 힘으로 풀어본 문제입니다 해설과 달라서 코드리뷰 한번 부탁드리고자 글을 써 봅니다 <html> <head> <meta charset="UTF-8" /> <title>출력결과</title> </head> <body> <script> function solution(k, arr) { let answer = 0; let sum = 0; for (let i = 0; i <= arr.length - k; i++) { sum = 0; for (let j = i; j < i + k; j++) { sum += arr[j]; } answer = Math.max(sum, answer); } return answer; } let a = [12, 15, 11, 20, 25, 10, 20, 19, 13, 15]; console.log(solution(3, a)); </script> </body> </html>

  • javascript
  • 코테 준비 같이 해요!
dydtjq324 댓글 1 좋아요 0 조회수 321

dictionary quiestion

미해결

[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)

Hi, my keyboard does not have Korean option. I hope you understand. about 9 min of video, for key is data_dict.keys(): print(key) in this part, I have an issue. on my jupitornotebook, it says 'list' object is not callable even my data_dict.keys is list (["seoul", "busan"]) I checked type(data.dict_keys) and it says builtin_function_or_method you can reply in Korean Thanks

  • python
  • 웹-크롤링
daeun jeong 댓글 1 좋아요 0 조회수 234

UnsatisfiedDependencyException 오류

미해결

스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술

학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요. [질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예/아니오) 예 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 예 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) 예 [질문 내용] 교안에 올라와 있는 대로 스프링 설정 변경을 진행했는데, 막상 실행을 시켜보니 각종 에러가 나와 질의 드립니다. SpringConfig파일 코드 첨부 2. 에러 사진 첨부 3. 에러 코드 첨부 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'springConfig' defined in file [C:\Spring-project\hello-Spring\out\production\classes\hello\helloSpring\SpringConfig.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: org.h2.driver at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.23.jar:5.3.23] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.23.jar:5.3.23] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.4.jar:2.7.4] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-2.7.4.jar:2.7.4] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.4.jar:2.7.4] at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-2.7.4.jar:2.7.4] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-2.7.4.jar:2.7.4] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-2.7.4.jar:2.7.4] at hello.helloSpring.HelloSpringApplication.main(HelloSpringApplication.java:10) ~[classes/:na] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: org.h2.driver at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.23.jar:5.3.23] ... 19 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: org.h2.driver at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.23.jar:5.3.23] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.23.jar:5.3.23] ... 33 common frames omitted Caused by: java.lang.IllegalStateException: Cannot load driver class: org.h2.driver at org.springframework.util.Assert.state(Assert.java:97) ~[spring-core-5.3.23.jar:5.3.23] at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:171) ~[spring-boot-autoconfigure-2.7.4.jar:2.7.4] at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:123) ~[spring-boot-autoconfigure-2.7.4.jar:2.7.4] at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:48) ~[spring-boot-autoconfigure-2.7.4.jar:2.7.4] at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:90) ~[spring-boot-autoconfigure-2.7.4.jar:2.7.4] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.23.jar:5.3.23] ... 34 common frames omitted

  • java
  • spring-boot
  • MVC
  • spring
정동규 댓글 1 좋아요 0 조회수 7521

model 설계, 데이터 저장

미해결

파이썬/장고 웹서비스 개발 완벽 가이드 with 리액트

안녕하세요. 장고를 활용하여 웹사이트를 만들고 있는 중입니다. 제가 지금 구현 중인 부분은 식단표 페이지로, 모델 단과 데이터 입력 단에서 막혀서 질문을 드립니다. 우선, "menu_list.html" 화면을 아래와 같이 띄우려고 합니다. 이를 위해 모델 구현부터 질문드리겠습니다. 첫번째 질문은 모델 구현에 대한 부분입니다. 최초 모델보다 수정 모델이 더 바람직한 방향인지 궁금합니다. #최초 model class Menu(models.Model): author = models.ForeignKey(User, on_delete=models.CASCADE, related_name='author_menu') date = models.DateField(unique=True) breakfast = models.TextField() lunch = models.TextField() dinner = models.TextField() voter = models.ManyToManyField(User, related_name='voter_menu') def __str__(self): return self.breakfast #수정 model TYPE_CHOICES = ( ("아침", "아침"), ("브런치", "브런치"), ("점심", "점심"), ("저녁", "저녁"), ) class Dish(models.Model): dish = models.CharField(max_length=10) voter = models.ManyToManyField(User) def __str__(self): return self.dish class Menu(models.Model): type = models.CharField(choices=TYPE_CHOICES, max_length=3) date = models.DateField() dish = models.ManyToManyField(Dish) 최초 모델은 아무런 고민 없이 TextField로 식사 정보를 모두 받아왔으나 성능 측면에서 비효율적일 수 있다는 생각이 들어 고민을 하고 수정하였습니다. 수정된 설계가 더 바람직한 것인지 의문이 들어 질문드립니다. 더 바람직한 방향이 있다면 가르쳐주세요!! 두번째 질문은, 수정된 model을 통해 값을 받아오는 것에 대해 질문드리고 싶습니다. #forms.py TYPE_CHOICES = ( ("아침", "아침"), ("브런치", "브런치"), ("점심", "점심"), ("저녁", "저녁"), ) class DishMenuForm(forms.Form): date = forms.DateField(widget=forms.DateInput(attrs={'type': 'date'}, format="%Y-%M-%d"),label='date') type = forms.ChoiceField(choices=TYPE_CHOICES, label='type') dish = forms.CharField(label='dish', max_length=10) def save(self, commit=True): menu = Menu(**self.cleaned_data) if commit: menu.save() return menu #menu_form.html {% extends 'layout.html' %} {% load static %} {% block content %} <script src ="{% static 'js/menu.js' %}"></script> <div class="container"> <h5 class="my-3 border-bottom pb-2">메뉴 입력하기</h5> <form method="post"> {% csrf_token %} <div id ="dishMenuForm"> <div class="mb-3"> <label for="date" class="form-label">날짜</label> <input type="date" class="form-control" name="date" id="date" width='50px'> </div> <div class="mb-3"> <label for="breakfast" class="form-label">아침</label> <select name='type' id ='type' class='form-control'> <option value="">시간대를 정해주세요.</option> <option value='아침'>아침</option> <option value='점심'>점심</option> <option value='저녁'>저녁</option> <option value='브런치'>브런치</option> </select> </div> <div class="mb-3"> <label for="dish" class="form-label">요리</label> <textarea class="form-control" name="dish[]" id="dish" rows="1"></textarea> </div> <div class="mb-3"> <label for="dish" class="form-label">요리</label> <textarea class="form-control" name="dish[]" id="dish" rows="1"></textarea> </div> <div class="mb-3"> <label for="dish" class="form-label">요리</label> <textarea class="form-control" name="dish[]" id="dish" rows="1"></textarea> </div> </div> <input type='submit' value='입력' /> </form> </div> {% endblock %} 사진처럼 form.html 화면에서 dish의 form들을 동적으로 추가하여 저장하고 싶습니다. 템플릿 파일에서 dish의 name을 배열로 받아와 view 단에서 반복문을 사용하여 데이터를 저장할 수 있는지 궁금합니다. 성능을 위해 매번 데이터를 저장할때마다 dish 테이블에 이미 값이 있는지를 확인하고 저장해야하는 것인지, 데이터를 저장할때마다 분기를 돈다면 성능에 더 악영향을 미칠 것 같은데 어떤 방향으로 개발해야 하는지 궁금합니다. 이런 식의 방향이 맞는지 아니면 더 잘 쓰이는 방법이 있는지 알려주세요.. 질문이 길고 장황하지만 답변 부탁드립니다.

  • django
  • docker
  • python
  • react
gbch526 댓글 2 좋아요 0 조회수 377

인기 태그

인프런 TOP Writers

주간 인기글